Main MRPT website > C++ reference
MRPT logo
Public Member Functions | Public Attributes | Private Attributes
mrpt::synch::CCriticalSection Class Reference

Detailed Description

This class provides simple critical sections functionality.

See also:
CCriticalSectionLocker

#include <mrpt/synch/CCriticalSection.h>

List of all members.

Public Member Functions

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

Exceptions:
Ifthe calling thread is not the current owener of the critical section.

std::string getName () const
 Returns the name used in the constructor.

Public Attributes

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

Private Attributes

utils::CReferencedMemBlock m_data
 The OS-dependent descriptors.
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 78 of file CCriticalSection.h.

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

Member Data Documentation

The OS-dependent descriptors.

Definition at line 55 of file CCriticalSection.h.

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

Definition at line 82 of file CCriticalSection.h.

Definition at line 57 of file CCriticalSection.h.




Page generated by Doxygen 1.7.5 for MRPT 0.9.5 SVN: at Thu Oct 13 21:25:36 UTC 2011