Skip to content

a6f/ccs_mutex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Conditional Critical Sections

A wrapper for std::sync::Mutex which adds the Conditional Critical Sections interface of nsync or abseil Mutex. Each Mutex embeds a Condvar, and the Condvar is signaled on each unlock, so you don't have to keep track of which operations might wake each waiter.

An implementation could be further optimized by evaluating the registered conditions during unlock, rather than making each waiter wake up to check its own condition. This requires that conditions be Send, and some cooperation from Mutex to get an overall speedup in typical use.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages