Go to the documentation of this file.
9 #ifndef mrpt_synch_criticalsection_H
10 #define mrpt_synch_criticalsection_H
17 namespace utils {
class CStream; }
57 std::string
getName()
const {
return m_name; }
118 #define THREADSAFE_OPERATION(_CRITSECT_OBJ, CODE_TO_EXECUTE ) \
120 mrpt::synch::CCriticalSectionLocker lock(&_CRITSECT_OBJ); \
const CCriticalSection * m_cs
std::string getName() const
Returns the name used in the constructor.
CCriticalSectionLocker(const CCriticalSection *cs)
Constructor: enters the critical section.
A class acquiring a CCriticalSection at its constructor, and releasing it at destructor.
CCriticalSection(const char *name=NULL)
Constructor.
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
mrpt::utils::CReferencedMemBlock m_data
The OS-dependent descriptors.
This class provides simple critical sections functionality.
This base class is used to provide a unified interface to files,memory buffers,..Please see the deriv...
CCriticalSectionLocker(const CCriticalSectionLocker &o)
~CCriticalSection()
Destructor.
Represents a memory block (via "void*") that can be shared between several objects through copy opera...
utils::CStream * m_debugOut
If set to a non-NULL value, debug messages regarding the calling threads IDs will be output.
~CCriticalSectionLocker()
Destructor: leaves the critical section.
Page generated by Doxygen 1.8.20 for MRPT 1.4.0 SVN: at Thu Aug 27 02:40:23 UTC 2020 | | |