#include <semaphore.h>
Public Types | |
typedef void | base_type |
typedef semaphore | this_type |
Public Member Functions | |
void | acquire (int n=1) |
int | available () |
void | post (void) |
void | release (int n=1) |
semaphore (void) | |
semaphore (int value) | |
bool | tryAcquire (int n=1) |
bool | trywait (void) |
void | wait (void) |
~semaphore (void) | |
Private Attributes | |
sem_t | s |
Definition at line 12 of file semaphore.h.
typedef void mt::semaphore::base_type |
Definition at line 19 of file semaphore.h.
typedef semaphore mt::semaphore::this_type |
Definition at line 18 of file semaphore.h.
mt::semaphore::semaphore | ( | void | ) | [inline] |
Definition at line 21 of file semaphore.h.
mt::semaphore::semaphore | ( | int | value | ) | [inline] |
Definition at line 26 of file semaphore.h.
mt::semaphore::~semaphore | ( | void | ) | [inline] |
Definition at line 31 of file semaphore.h.
void mt::semaphore::acquire | ( | int | n = 1 | ) | [inline] |
Definition at line 68 of file semaphore.h.
int mt::semaphore::available | ( | ) | [inline] |
Definition at line 82 of file semaphore.h.
void mt::semaphore::post | ( | void | ) | [inline] |
Definition at line 36 of file semaphore.h.
void mt::semaphore::release | ( | int | n = 1 | ) | [inline] |
Definition at line 61 of file semaphore.h.
bool mt::semaphore::tryAcquire | ( | int | n = 1 | ) | [inline] |
Definition at line 75 of file semaphore.h.
bool mt::semaphore::trywait | ( | void | ) | [inline] |
Definition at line 53 of file semaphore.h.
void mt::semaphore::wait | ( | void | ) | [inline] |
Definition at line 48 of file semaphore.h.
sem_t mt::semaphore::s [private] |
Definition at line 91 of file semaphore.h.