An object oriented wrapper around a non recursive mutex. More...
#include <Mutex.hpp>
Public Member Functions | |
virtual void | lock () |
virtual void | lock () |
Mutex () | |
Mutex () | |
virtual bool | timedlock (Seconds s) |
virtual bool | timedlock (Seconds s) |
virtual bool | trylock () |
virtual bool | trylock () |
virtual void | unlock () |
virtual void | unlock () |
virtual | ~Mutex () |
virtual | ~Mutex () |
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.
Definition at line 82 of file install/include/rtt/os/Mutex.hpp.
RTT::os::Mutex::Mutex | ( | ) | [inline] |
Initialize a Mutex.
Definition at line 92 of file install/include/rtt/os/Mutex.hpp.
virtual RTT::os::Mutex::~Mutex | ( | ) | [inline, virtual] |
Destroy a Mutex. If the Mutex is still locked, the RTOS will not be asked to clean up its resources.
Definition at line 102 of file install/include/rtt/os/Mutex.hpp.
RTT::os::Mutex::Mutex | ( | ) | [inline] |
Initialize a Mutex.
Definition at line 92 of file rtt/os/Mutex.hpp.
virtual RTT::os::Mutex::~Mutex | ( | ) | [inline, virtual] |
Destroy a Mutex. If the Mutex is still locked, the RTOS will not be asked to clean up its resources.
Definition at line 102 of file rtt/os/Mutex.hpp.
virtual void RTT::os::Mutex::lock | ( | ) | [inline, virtual] |
Implements RTT::os::MutexInterface.
Definition at line 110 of file rtt/os/Mutex.hpp.
virtual void RTT::os::Mutex::lock | ( | ) | [inline, virtual] |
Implements RTT::os::MutexInterface.
Definition at line 110 of file install/include/rtt/os/Mutex.hpp.
virtual bool RTT::os::Mutex::timedlock | ( | Seconds | s | ) | [inline, virtual] |
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.
Definition at line 139 of file rtt/os/Mutex.hpp.
virtual bool RTT::os::Mutex::timedlock | ( | Seconds | s | ) | [inline, virtual] |
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.
Definition at line 139 of file install/include/rtt/os/Mutex.hpp.
virtual bool RTT::os::Mutex::trylock | ( | ) | [inline, virtual] |
Try to lock this mutex
Implements RTT::os::MutexInterface.
Definition at line 125 of file rtt/os/Mutex.hpp.
virtual bool RTT::os::Mutex::trylock | ( | ) | [inline, virtual] |
Try to lock this mutex
Implements RTT::os::MutexInterface.
Definition at line 125 of file install/include/rtt/os/Mutex.hpp.
virtual void RTT::os::Mutex::unlock | ( | ) | [inline, virtual] |
Implements RTT::os::MutexInterface.
Definition at line 115 of file rtt/os/Mutex.hpp.
virtual void RTT::os::Mutex::unlock | ( | ) | [inline, virtual] |
Implements RTT::os::MutexInterface.
Definition at line 115 of file install/include/rtt/os/Mutex.hpp.
Condition [friend] |
Definition at line 84 of file install/include/rtt/os/Mutex.hpp.
rt_mutex_t RTT::os::Mutex::m [protected] |
Definition at line 87 of file install/include/rtt/os/Mutex.hpp.