|
sttcl
v0.9c
STTCL C++ template state machine framework
|
#include <SttclMutex.h>
Public Member Functions | |
| SttclMutex () | |
| ~SttclMutex () | |
| void | lock () |
| bool | try_lock (const TimeDurationType &timeout=TimeDurationType::Zero) |
| void | unlock () |
Adapter class for a (OS-)specific mutex implementation.
| Impl | Selects a (OS-)specific mutex implementation. |
|
inline |
Constructor for class SttclMutex.
|
inline |
Destructor for class SttclMutex.
|
inline |
Locks the mutex. Waits blocking forever until the mutex becomes lockable.
|
inline |
Tries to lock the mutex within the specified timeout parameter. The timeout value TimeDurationType::Zero will return success or failure immediately.
| timeout | The maximum duration to wait until the mutex becomes lockable. |
true if the mutex is lockable. false if the timeout duration expired.
|
inline |
Unlocks the mutex.