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

