An object oriented wrapper around a non recursive mutex. More...
#include <rtt/os/Mutex.hpp>
Public Member Functions | |
| Mutex () | |
| Initialize a Mutex. | |
| virtual | ~Mutex () |
| Destroy a Mutex. | |
| virtual void | lock () |
| virtual void | unlock () |
| virtual bool | trylock () |
| Try to lock this mutex. | |
| virtual bool | timedlock (Seconds s) |
| Lock this mutex, but don't wait longer for the lock than the specified timeout. | |
Protected Attributes | |
| rt_mutex_t | m |
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 76 of file Mutex.hpp.
| virtual RTT::OS::Mutex::~Mutex | ( | ) | [inline, virtual] |
| 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.
| virtual bool RTT::OS::Mutex::trylock | ( | ) | [inline, virtual] |
Try to lock this mutex.
Implements RTT::OS::MutexInterface.
1.6.3