#include <posix.h>
Public Member Functions | |
posix_mutex () | |
~posix_mutex () | |
void | lock (void) |
void | unlock (void) |
bool | trylock (void) |
Private Member Functions | |
posix_mutex (const posix_mutex &) | |
Mutexes are never copiable nor assignable. | |
posix_mutex & | operator= (const posix_mutex &) |
Private Attributes | |
pthread_mutex_t | _mtx |
Friends | |
class | posix_condition |
This class needs to access the internal mutex. |
rpa::posix_mutex::posix_mutex | ( | const posix_mutex & | ) | [private] |
Mutexes are never copiable nor assignable.
rpa::posix_mutex::posix_mutex | ( | ) |
rpa::posix_mutex::~posix_mutex | ( | ) |
void rpa::posix_mutex::lock | ( | void | ) |
posix_mutex& rpa::posix_mutex::operator= | ( | const posix_mutex & | ) | [private] |
bool rpa::posix_mutex::trylock | ( | void | ) |
void rpa::posix_mutex::unlock | ( | void | ) |
friend class posix_condition [friend] |
This class needs to access the internal mutex.
pthread_mutex_t rpa::posix_mutex::_mtx [private] |