semaphore
Copyright (C) 2005 IENT-RWTH Aachen
Counter for resources shared between threads
Groups
Constructors | |
![]() |
Builds an instance of the object |
Multithreading Functions | |
![]() |
Waits until it can decrement the count |
![]() |
Either releases one or multiple threads if there are any waiting, or increments the count if not enough were waiting |
![]() |
Returns the number with which it could immediately decrement the count |
Destructors | |
![]() |
Destroys the object |