An object oriented wrapper around a recursive mutex. More...
#include <Mutex.hpp>
Public Member Functions | |
void | lock () |
MutexRecursive () | |
virtual bool | timedlock (Seconds s) |
virtual bool | trylock () |
virtual void | unlock () |
virtual | ~MutexRecursive () |
Public Member Functions inherited from RTT::os::MutexInterface | |
virtual void | lock_shared () |
virtual bool | timedlock_shared (Seconds) |
virtual bool | trylock_shared () |
virtual void | unlock_shared () |
virtual | ~MutexInterface () |
Protected Attributes | |
rt_rec_mutex_t | recm |
An object oriented wrapper around a recursive mutex.
A mutex can only be unlock()'ed, by the thread which lock()'ed it. A trylock is a non blocking lock action which fails or succeeds.
|
inline |
|
inlinevirtual |
Destroy a MutexRecursive. If the MutexRecursive is still locked, the RTOS will not be asked to clean up its resources.
|
inlinevirtual |
Implements RTT::os::MutexInterface.
|
inlinevirtual |
Lock this mutex, but don't wait longer for the lock than the specified timeout.
s | The maximum time to wait before aqcuiring the lock. |
Implements RTT::os::MutexInterface.
|
inlinevirtual |
Try to lock this mutex
Implements RTT::os::MutexInterface.
|
inlinevirtual |
Implements RTT::os::MutexInterface.
|
protected |