Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix race condition in GetName #1571

Merged
merged 1 commit into from
May 3, 2023
Merged

Fix race condition in GetName #1571

merged 1 commit into from
May 3, 2023

Conversation

foriequal0
Copy link
Contributor

@foriequal0 foriequal0 commented Oct 24, 2022

Reading a dictionary without acquiring a lock while there's a writer out there is not safe.
I couldn't use ConcurrentDictionary because it requires netstandard 1.1

@RicoSuter RicoSuter merged commit 3d1356a into RicoSuter:master May 3, 2023
@foriequal0 foriequal0 deleted the fix/getname-race-condition branch May 4, 2023 03:30
shuruev added a commit to servicetitan/NJsonSchema that referenced this pull request Nov 16, 2023
* Update README.md

* Handle single quote in properties names (RicoSuter#1574)

* added abstract schema checking to CSharpValueGenerator GetDefaultValue (RicoSuter#1570)

Co-authored-by: Gergo Vandor <gergo.vandor.dev@outlook.com>

* Recursive sample generation (RicoSuter#1561)

* Add tests that show generator doesnt handle definition re-use/recursion

* Allow definition re-use/recursion in SampleJsonDataGenerator

Adds a MaxRecursionLevel to SampleJsonDataGeneratorSettings

* Add test of recursion level

* Fix race condition in GetName (RicoSuter#1571)

* Update Namotion.Reflection

* v11.1.0

* Revert "v11.1.0"

This reverts commit 1015b01.

* Post-merge adjustments

---------

Co-authored-by: Rico Suter <mail@rsuter.com>
Co-authored-by: kal <35899782+kalilistic@users.noreply.github.com>
Co-authored-by: Gergo Vandor <vandor.gergoo@gmail.com>
Co-authored-by: Gergo Vandor <gergo.vandor.dev@outlook.com>
Co-authored-by: Flemming Madsen <mail@leflings.dk>
Co-authored-by: SeongChan Lee <foriequal@gmail.com>
Co-authored-by: Rico Suter <rico.suter@buhlergroup.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants