#include <semaphore.h>
Public Methods | |
| Semaphore () | |
| ~Semaphore () | |
| bool | isBusy () |
| Return whether there is already a Wait() in progress. More... | |
| int | Wait () |
| Wait until lock is available and then lock it. More... | |
| int | Post () |
| Unlock. More... | |
| int | WaitCount () |
| Number of times Wait() was called. More... | |
| int | PostCount () |
| Number of times Post() was called. More... | |
|
|
|
|
|
|
|
|
Return whether there is already a Wait() in progress.
|
|
|
Unlock.
|
|
|
Number of times Post() was called.
|
|
|
Wait until lock is available and then lock it.
|
|
|
Number of times Wait() was called.
|
1.2.13.1 written by Dimitri van Heesch,
© 1997-2001