#include <parallel.h>
Public Member Functions | |
Semaphore () | |
~Semaphore () | |
void | Post (int count=1) |
void | Wait () |
bool | TryWait () |
Private Attributes | |
sem_t * | sem |
Static Private Attributes | |
static int | count = 0 |
Definition at line 279 of file parallel.h.
Semaphore::Semaphore | ( | ) |
Definition at line 465 of file parallel.cpp.
Semaphore::~Semaphore | ( | ) |
Definition at line 497 of file parallel.cpp.
void Semaphore::Post | ( | int | count = 1 |
) |
Definition at line 537 of file parallel.cpp.
Referenced by EnqueueTasks(), and TasksCleanup().
bool Semaphore::TryWait | ( | ) |
Definition at line 530 of file parallel.cpp.
References sem.
void Semaphore::Wait | ( | ) |
Definition at line 521 of file parallel.cpp.
Referenced by taskEntry().
int Semaphore::count = 0 [static, private] |
Definition at line 293 of file parallel.h.
Referenced by Semaphore().
sem_t* Semaphore::sem [private] |
Definition at line 292 of file parallel.h.
Referenced by Post(), Semaphore(), TryWait(), Wait(), and ~Semaphore().