#include <JSemaphore.h>
Public Member Functions | |
WriteAccessMutex () | |
~WriteAccessMutex () | |
Object * | clone () const |
bool | gainReadAccess (long ms=-1) |
bool | releaseReadAccess () |
bool | gainWriteAccess (long ms=-1) |
bool | releaseWriteAccess () |
Private Attributes | |
int | currentReadCount |
JMutex | accessMutex |
Definition at line 131 of file JSemaphore.h.
cmlabs::WriteAccessMutex::WriteAccessMutex | ( | ) |
Definition at line 61 of file JSemaphore.cpp.
cmlabs::WriteAccessMutex::~WriteAccessMutex | ( | ) |
Definition at line 65 of file JSemaphore.cpp.
Object* cmlabs::WriteAccessMutex::clone | ( | ) | const [virtual] |
bool cmlabs::WriteAccessMutex::gainReadAccess | ( | long | ms = -1 |
) |
Definition at line 69 of file JSemaphore.cpp.
bool cmlabs::WriteAccessMutex::releaseReadAccess | ( | ) |
Definition at line 77 of file JSemaphore.cpp.
bool cmlabs::WriteAccessMutex::gainWriteAccess | ( | long | ms = -1 |
) |
Definition at line 86 of file JSemaphore.cpp.
bool cmlabs::WriteAccessMutex::releaseWriteAccess | ( | ) |
Definition at line 116 of file JSemaphore.cpp.
int cmlabs::WriteAccessMutex::currentReadCount [private] |
Definition at line 146 of file JSemaphore.h.
JMutex cmlabs::WriteAccessMutex::accessMutex [private] |
Definition at line 147 of file JSemaphore.h.