Skip to content

bob-long/semaphore-cplusplus11

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

semaphore c++11

Implement a simple semaphore interface:

wait() post() trywait()

There are two implementations available:

  • "semaphore" is blocking version that is implemented based on mutex and condition variable.

  • "semaphore_lockfree" is lock-less version that is implemented based on c++ atomic CAS (compare and swap).

About

Implement a simple semaphore interface

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages