Skip to content

feat: support thread safe for OrderedMap#62

Open
zhuliquan wants to merge 1 commit intoelliotchance:masterfrom
zhuliquan:feature-thread_safe
Open

feat: support thread safe for OrderedMap#62
zhuliquan wants to merge 1 commit intoelliotchance:masterfrom
zhuliquan:feature-thread_safe

Conversation

@zhuliquan
Copy link

@zhuliquan zhuliquan commented Apr 16, 2025

Adding RWmutex for OrderedMap that guarantee Thread-Safe


This change is Reviewable

@andrii-telesh-readdle
Copy link

Thread-Safe is not always a necessary thing when working with maps. Your PR adds an overhead. This is just an instrument to make maps ordered, not thread-safe

@elliotchance
Copy link
Owner

@andrii-telesh-readdle is correct, but I'm open to accepting a PR with a new type that is thread safe for those cases.

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.

3 participants