#include <svutil.h>
Public Member Functions | |
SVSemaphore () | |
Sets up a semaphore. More... | |
void | Signal () |
Signal a semaphore. More... | |
void | Wait () |
Wait on a semaphore. More... | |
Private Attributes | |
sem_t | semaphore_ |
A semaphore class which encapsulates the main signalling and wait abilities of semaphores for windows and unix.
SVSemaphore::SVSemaphore | ( | ) |
Sets up a semaphore.
void SVSemaphore::Signal | ( | ) |
Signal a semaphore.
void SVSemaphore::Wait | ( | ) |
Wait on a semaphore.
|
private |