semaphore

Class semaphore from namespace synchronization_primitive provides
functionality of synchronization primitive "semaphore".