#include <Thread.hpp>
Public Types | |
enum | MutexKind { FAST, RECURSIVE } |
Public Member Functions | |
ThreadMutex (MutexKind mutex_kind=FAST) | |
Constructor. | |
~ThreadMutex () | |
Destructor. | |
void | lock () const |
This method locks the mutex. | |
void | unlock () const |
This method unlocks the mutex. | |
int | tryLock () const |
This method differs form lock, that this method returns imediatly. | |
Friends | |
class | ThreadCondition |
Definition at line 11 of file Thread.hpp.
|
Definition at line 15 of file Thread.hpp. |
|
Constructor.
Definition at line 11 of file Thread.cpp. |
|
Destructor.
Definition at line 18 of file Thread.cpp. |
|
|
This method differs form lock, that this method returns imediatly. Return value is FAILURE if the mutex is already locked by another thread else SUCCESS Definition at line 22 of file Thread.cpp. References FAST, L1394_FAILED, L1394_SUCCESS, and RECURSIVE. |
|
|
Definition at line 13 of file Thread.hpp. |