RTT::OS::MutexRecursive Class Reference

An object oriented wrapper around a recursive mutex. More...

#include <rtt/os/Mutex.hpp>

Inheritance diagram for RTT::OS::MutexRecursive:

RTT::OS::MutexInterface

List of all members.

Public Member Functions

 MutexRecursive ()
 Initialize a recursive Mutex.
 ~MutexRecursive ()
 Destroy a recursive Mutex.
void lock ()
virtual void unlock ()
virtual bool trylock ()
 Try to lock this mutex.

Protected Attributes

rt_rec_mutex_t recm


Detailed Description

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.

See also:
MutexLock, MutexTryLock, Mutex

Definition at line 135 of file Mutex.hpp.


Member Function Documentation

virtual bool RTT::OS::MutexRecursive::trylock (  )  [inline, virtual]

Try to lock this mutex.

Returns:
true when the locking succeeded, false otherwise

Implements RTT::OS::MutexInterface.

Definition at line 172 of file Mutex.hpp.


The documentation for this class was generated from the following file:

Generated on Tue Aug 25 14:17:26 2009 for Orocos Real-Time Toolkit by  doxygen 1.5.8