#include <rtt/os/Mutex.hpp>

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 74 of file 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. | |
Protected Attributes | |
| rt_mutex_t | m |
Friends | |
| class | OS::MutexLock |
| class | OS::MutexTryLock |
| virtual ~Mutex | ( | ) | [inline, virtual] |
Destroy a Mutex.
This is a blocking operation on the mutex itself. The mutex may not be locked when you call the destructor.
Definition at line 95 of file Mutex.hpp.
References Mutex::lock(), Mutex::m, and Mutex::unlock().
| virtual bool trylock | ( | ) | [inline, virtual] |
Try to lock this mutex.
Implements MutexInterface.
Definition at line 118 of file Mutex.hpp.
References Mutex::m.
1.5.3