class: etk::Mutex
Description:
Generic mutex interface (OS independent)
Constructor and Destructor:
+ Mutex (void );
+ ~Mutex (void );
Synopsis:
+ void lock (void );
+ bool tryLock (void );
+ void unLock (void );
Detail:
Mutex
+ Mutex (void );
Create a new mutex
~Mutex
+ ~Mutex (void );
Destroy the mutex.
lock
+ void lock (void );
Lock the mutex (Wait while the mutex is not lock)
tryLock
+ bool tryLock (void );
Try to lock the mutex (exit if mutex is already locked)
Return: | | true The mutex is locked<br/>false The mutex is already locked. |
unLock
+ void unLock (void );
Unloc the mutex