Skip to content

Conversation

@ysbaddaden
Copy link
Contributor

@ysbaddaden ysbaddaden commented Nov 21, 2025

The types are copy-pasted from the sync shard, minus Sync::Dll(T) that is replaced by Crystal::PointerLinkedList(T) (main difference is that dll nodes are circular lists, maybe a bit simpler), and Sync::Lockable that will come in a follow-up PR to import Sync::ConditionVariable.

I kept the Sync namespace as it will be useful to group many different sync objects, rather than adding more and more types at the top level.

The PR doesn't deprecate nor remove ::Mutex (yet). That will come in a follow up.

@ysbaddaden ysbaddaden force-pushed the feature/import-sync-mutex-and-rwlock branch from 1aa9d97 to 4dc5456 Compare November 24, 2025 14:26
@ysbaddaden
Copy link
Contributor Author

I forgot to update src/docs_main.cr again.

@straight-shoota straight-shoota added this to the 1.19.0 milestone Nov 25, 2025
@ysbaddaden ysbaddaden moved this from Review to Approved in Multi-threading Nov 25, 2025
@straight-shoota straight-shoota merged commit f7597ca into crystal-lang:master Nov 26, 2025
40 checks passed
@github-project-automation github-project-automation bot moved this from Approved to Done in Multi-threading Nov 26, 2025
@straight-shoota straight-shoota changed the title Import Sync::Mutex and Sync::RWLock from the sync shard Add Sync::Mutex and Sync::RWLock Nov 26, 2025
@ysbaddaden ysbaddaden deleted the feature/import-sync-mutex-and-rwlock branch November 27, 2025 08:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants