#include <semaphore.h>
Public Member Functions | |
virtual Error | wait ()=0 |
wait until semaphore has positive value, then decrement and pass | |
virtual Error | post ()=0 |
unlock the semaphore, incrementing the value | |
virtual int | get () const =0 |
get semaphore value | |
Static Public Member Functions | |
static Semaphore * | create () |
Create a mutex. | |
Static Protected Attributes | |
static Semaphore *(* | create_func )() |