Main MRPT website > C++ reference for MRPT 1.4.0
List of all members | Public Member Functions | Public Attributes | Private Attributes
mrpt::synch::CCriticalSection Class Reference

Detailed Description

This class provides simple critical sections functionality.

See also
CCriticalSectionLocker

Definition at line 31 of file CCriticalSection.h.

#include <mrpt/synch/CCriticalSection.h>

Public Member Functions

 CCriticalSection (const char *name=NULL)
 Constructor. More...
 
 ~CCriticalSection ()
 Destructor. More...
 
void enter () const
 Enter. More...
 
void leave () const
 Leave

Exceptions
Ifthe calling thread is not the current owener of the critical section.
More...
 
std::string getName () const
 Returns the name used in the constructor. More...
 

Public Attributes

utils::CStreamm_debugOut
 If set to a non-NULL value, debug messages regarding the calling threads IDs will be output. More...
 

Private Attributes

mrpt::utils::CReferencedMemBlock m_data
 The OS-dependent descriptors. More...
 
std::string m_name
 

Constructor & Destructor Documentation

mrpt::synch::CCriticalSection::CCriticalSection ( const char *  name = NULL)

Constructor.

mrpt::synch::CCriticalSection::~CCriticalSection ( )

Destructor.

Member Function Documentation

void mrpt::synch::CCriticalSection::enter ( ) const
std::string mrpt::synch::CCriticalSection::getName ( ) const
inline

Returns the name used in the constructor.

Definition at line 57 of file CCriticalSection.h.

void mrpt::synch::CCriticalSection::leave ( ) const

Member Data Documentation

mrpt::utils::CReferencedMemBlock mrpt::synch::CCriticalSection::m_data
private

The OS-dependent descriptors.

Definition at line 34 of file CCriticalSection.h.

utils::CStream* mrpt::synch::CCriticalSection::m_debugOut

If set to a non-NULL value, debug messages regarding the calling threads IDs will be output.

Definition at line 61 of file CCriticalSection.h.

std::string mrpt::synch::CCriticalSection::m_name
private

Definition at line 36 of file CCriticalSection.h.




Page generated by Doxygen 1.8.11 for MRPT 1.4.0 SVN: at Mon Aug 15 11:50:21 UTC 2016