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); \
This class provides simple critical sections functionality.
A class acquiring a CCriticalSection at its constructor, and releasing it at destructor.
CCriticalSectionLocker(const CCriticalSectionLocker &o)
utils::CStream * m_debugOut
If set to a non-NULL value, debug messages regarding the calling threads IDs will be output...
Represents a memory block (via "void*") that can be shared between several objects through copy opera...
const CCriticalSection * m_cs
class BASE_IMPEXP CStream
std::string getName() const
Returns the name used in the constructor.
This base class is used to provide a unified interface to files,memory buffers,..Please see the deriv...
mrpt::utils::CReferencedMemBlock m_data
The OS-dependent descriptors.
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.