My Project
|
cross platform mutex More...
#include <mutex.h>
Public Types | |
typedef scoped_Lock< mutex > | ScopedLock |
Public Member Functions | |
mutex () | |
Construct a mutex. More... | |
mutex (const mutex &in_mutex) | |
Copy Constructor a mutex (copy the locked state only) More... | |
mutex & | operator= (const mutex &in_mutex) |
Copy a mutex (copy the locked state only) More... | |
virtual | ~mutex () |
Destructor. | |
bool | lock () |
lock a mutex More... | |
bool | tryLock () |
lock a mutex More... | |
bool | unlock () |
unlock a mutex More... | |
bool | isLocked () const |
Fast locked look up. More... | |
cross platform mutex
This class represent a simple way to use mutex
mutex mut;
mutex::ScopedLock lock_(mut); // scoped lock.
mut.lock(); // lock ... mut.islocked(); // fast look up ... mut.unlock(); // unlock mut.tryLock(); // try lock
|
inline |
Construct a mutex.
Posix and Win mutex
|
inline |
Copy Constructor a mutex (copy the locked state only)
Based | mutex |
|
inline |
Fast locked look up.
|
inline |
lock a mutex
Copy a mutex (copy the locked state only)
Based | mutex |
|
inline |
lock a mutex
|
inline |
unlock a mutex