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.
 
 ~CCriticalSection ()
 Destructor.
 
void enter () const
 Enter.
 
void leave () const
 Leave.
 
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

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

Constructor & Destructor Documentation

◆ CCriticalSection()

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

Constructor.

◆ ~CCriticalSection()

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

Destructor.

Member Function Documentation

◆ enter()

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

◆ getName()

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

Returns the name used in the constructor.

Definition at line 57 of file CCriticalSection.h.

◆ leave()

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

Member Data Documentation

◆ m_data

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

The OS-dependent descriptors.

Definition at line 34 of file CCriticalSection.h.

◆ m_debugOut

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.

◆ m_name

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

Definition at line 36 of file CCriticalSection.h.




Page generated by Doxygen 1.9.6 for MRPT 1.4.0 SVN: at Wed Mar 22 08:20:48 UTC 2023