9 #ifndef mrpt_synch_criticalsection_H 10 #define mrpt_synch_criticalsection_H 17 namespace utils {
class CStream; }
31 virtual void enter()
const =0;
32 virtual void leave()
const =0;
33 virtual bool try_enter()
const = 0;
54 std::
string getName() const;
57 utils::CStream *m_debugOut;
123 #define THREADSAFE_OPERATION(_CRITSECT_OBJ, CODE_TO_EXECUTE ) \ 125 mrpt::synch::CCriticalSectionLocker lock(&_CRITSECT_OBJ); \ Recursive mutex: allow recursive locks by the owner thread.
This class provides simple critical sections functionality.
A class acquiring a CCriticalSection at its constructor, and releasing it at destructor.
CCriticalSectionLocker(const CCriticalSectionLocker &o)
#define MRPT_OVERRIDE
C++11 "override" for virtuals:
const CAbstractMutex * m_cs
GLsizei const GLchar ** string
void * m_data
std::mutex*. Opaque ptr until MRPT 2.0.0 in which we could expose C++11 to user headers ...
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
void * m_data
std::recursive_mutex*. Opaque ptr until MRPT 2.0.0 in which we could expose C++11 to user headers ...
GLuint const GLchar * name