uThreads
0.3.0
|
A user-level Semaphore. More...
#include <BlockingSync.h>
Public Member Functions | |
Semaphore (mword c=0) | |
Create a new Semaphore. More... | |
bool | P () |
Decrement the value of the Semaphore. More... | |
void | V () |
increment the value of the Semaphore | |
A user-level Semaphore.
blocks in user levle by blocking uThreads and does not cause kernel threads to block.
|
inlineexplicit |
|
inline |
Decrement the value of the Semaphore.