An object oriented wrapper around a non recursive mutex. More...
#include <Mutex.hpp>
Public Member Functions | |
virtual void | lock () |
Mutex () | |
virtual bool | timedlock (Seconds s) |
virtual bool | trylock () |
virtual void | unlock () |
virtual | ~Mutex () |
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_mutex_t | m |
Friends | |
class | Condition |
An object oriented wrapper around a non 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.
|
inlinevirtual |
|
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 |