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

Definition at line 47 of file CCriticalSection.h.

#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 73 of file CCriticalSection.h.

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

Member Data Documentation

The OS-dependent descriptors.

Definition at line 50 of file CCriticalSection.h.

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

Definition at line 77 of file CCriticalSection.h.

Definition at line 52 of file CCriticalSection.h.




Page generated by Doxygen 1.7.3 for MRPT 0.9.4 SVN:exported at Tue Jan 25 21:56:31 UTC 2011