#include <lightMutex.h>
Classes | |
class | unlockable_lock |
requirement: thread local More... | |
Public Types | |
typedef LightScopedLock < LightMutex > | scoped_lock |
Public Member Functions | |
LightMutex () | |
bool | tryLock () |
bool | waitLock (int counter) |
void | lock () |
void | unlock () |
Private Attributes | |
volatile int | data |
Definition at line 48 of file lightMutex.h.
Definition at line 51 of file lightMutex.h.
osl::misc::LightMutex::LightMutex | ( | ) | [inline] |
Definition at line 53 of file lightMutex.h.
void osl::misc::LightMutex::lock | ( | ) | [inline] |
Definition at line 78 of file lightMutex.h.
References tryLock(), and waitLock().
Referenced by osl::misc::LightMutex::unlockable_lock::unlockable_lock().
bool osl::misc::LightMutex::tryLock | ( | ) | [inline] |
void osl::misc::LightMutex::unlock | ( | ) | [inline] |
Definition at line 87 of file lightMutex.h.
References data.
Referenced by osl::misc::LightMutex::unlockable_lock::unlock().
bool osl::misc::LightMutex::waitLock | ( | int | counter | ) | [inline] |
volatile int osl::misc::LightMutex::data [private] |
Definition at line 49 of file lightMutex.h.
Referenced by tryLock(), unlock(), and waitLock().