Skip to content

Conversation

@ysbaddaden
Copy link
Contributor

Imports Sync::CV, Sync::Lockable and Sync::ConditionVariable from the sync shard.

  • Sync::CV is the foundational type for condition variables and interacts with Sync::Mu — internal, ported from the nsync library;

  • Sync::ConditionVariable is the public type, meant to interact with Sync::Mutex, Sync::RWLock, ...

  • Sync::Lockable is to allow to use Sync::ConditionVariable with any lock that internally uses Sync::MU (Sync::Mutex, Sync::RWLock, ...);

Follow up to #16399

Co-authored-by: Johannes Müller <[email protected]>
@straight-shoota straight-shoota added this to the 1.19.0 milestone Dec 5, 2025
@straight-shoota straight-shoota merged commit 13e9964 into crystal-lang:master Dec 8, 2025
45 of 47 checks passed
@github-project-automation github-project-automation bot moved this from Review to Done in Multi-threading Dec 8, 2025
@ysbaddaden ysbaddaden deleted the feature/import-sync-condition-variable branch December 8, 2025 16:50
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