#include <ipcplus.h>
Public Methods | |
SemSet (const unsigned int key, const int num=5, const bool createIfNotExist=true) | |
Constructor, creates a non-private IPC semaphore set. More... | |
virtual | ~SemSet () |
Destructor. | |
int | numSem (void) |
Returns the number of semaphores in this set. More... | |
virtual bool | destroy () |
Destroy the actual IPC semaphore set. More... | |
bool | semOp (const int semIdx, const int semOperation) |
Perform an operation on a single semaphore in the set. More... | |
Private Attributes | |
int | sid |
The Sys V IPC semaphore id. | |
int | numSemaphores |
The number of semaphores represented by the id above. |
|
Constructor, creates a non-private IPC semaphore set.
|
|
Destroy the actual IPC semaphore set.
|
|
Returns the number of semaphores in this set.
|
|
Perform an operation on a single semaphore in the set.
|