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.
A class acquiring a CCriticalSection at its constructor, and releasing it at destructor.
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)
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.
Page generated by Doxygen 1.8.17 for MRPT 1.4.0 SVN: at Sat Jan 18 22:37:07 UTC 2020 | | |