Orocos Real-Time Toolkit  2.9.0
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
RTT::os::MutexLock Class Reference

MutexLock is a scope based Monitor, protecting critical sections with a Mutex object through locking and unlocking it. More...

#include <rtt/os/MutexLock.hpp>

Public Member Functions

 MutexLock (MutexInterface &mutex)
 Create a lock on a Mutex object. More...
 
 ~MutexLock ()
 Remove a lock from a Mutex object. More...
 

Protected Member Functions

 MutexLock ()
 

Protected Attributes

MutexInterface_mutex
 

Detailed Description

MutexLock is a scope based Monitor, protecting critical sections with a Mutex object through locking and unlocking it.

Definition at line 51 of file MutexLock.hpp.

Constructor & Destructor Documentation

RTT::os::MutexLock::MutexLock ( MutexInterface mutex)
inline

Create a lock on a Mutex object.

Parameters
mutexThe Mutex to be locked.

Definition at line 60 of file MutexLock.hpp.

References RTT::os::MutexInterface::lock().

RTT::os::MutexLock::~MutexLock ( )
inline

Remove a lock from a Mutex object.

Definition at line 69 of file MutexLock.hpp.

RTT::os::MutexLock::MutexLock ( )
inlineprotected

Definition at line 77 of file MutexLock.hpp.

Member Data Documentation

MutexInterface* RTT::os::MutexLock::_mutex
protected

Definition at line 75 of file MutexLock.hpp.


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