Public Member Functions | |
| int | destroy () |
| SemaphoreHandle * | getHandle () |
| int | init (int n) |
| int | isInitialized () |
| int | lock (u_long id=0) |
| Semaphore (int n) | |
| int | unlock (u_long id=0) |
| ~Semaphore () | |
Private Attributes | |
| int | initialized |
| SemaphoreHandle | semaphore |
|
|
Constructor for the semaphore class. |
|
|
Destroy the object. |
|
|
Destroy the semaphore. |
|
|
|
|
|
Initialize the semaphore. |
|
|
|
|
|
Lock the semaphore (p). |
|
|
Unlock the semaphore access (n).
|
|
|
|
|
|
|
1.3.9.1