rllib
1
|
#include <rlthread.h>
Public Member Functions | |
rlMutex (const void *attr=NULL) | |
virtual | ~rlMutex () |
int | trylock () |
int | lock () |
int | unlock () |
Public Attributes | |
pthread_mutex_t | mutex |
Mutex functions based on POSIX threads.
Definition at line 118 of file rlthread.h.
rlMutex::rlMutex | ( | const void * | attr = NULL | ) |
Definition at line 90 of file rlthread.cpp.
|
virtual |
Definition at line 95 of file rlthread.cpp.
int rlMutex::lock | ( | ) |
int rlMutex::trylock | ( | ) |
Try to lock the mutex. return 0 if already locked return !0 if lock sucessfull
Definition at line 100 of file rlthread.cpp.
int rlMutex::unlock | ( | ) |
Unlock the mutex.
Definition at line 110 of file rlthread.cpp.
pthread_mutex_t rlMutex::mutex |
Definition at line 142 of file rlthread.h.