#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... | |
|
|
Definition at line 4 of file semaphore.cc. |
|
|
Definition at line 10 of file semaphore.cc. |
|
|
Return whether there is already a Wait() in progress.
Definition at line 15 of file semaphore.cc. References Post(). |
|
|
Unlock.
Definition at line 33 of file semaphore.cc. Referenced by isBusy(), Thread::Post(), and DataServer::Post(). |
|
|
Number of times Post() was called.
Definition at line 45 of file semaphore.cc. |
|
|
Wait until lock is available and then lock it.
Definition at line 26 of file semaphore.cc. Referenced by Thread::Wait(), and DataServer::Wait(). |
|
|
Number of times Wait() was called.
Definition at line 40 of file semaphore.cc. |
1.2.13.1 written by Dimitri van Heesch,
© 1997-2001