Recursive mutex: allow recursive locks by the owner thread.
Definition at line 66 of file CCriticalSection.h.
#include <mrpt/synch/CCriticalSection.h>
Public Member Functions | |
CCriticalSectionRecursive () | |
virtual | ~CCriticalSectionRecursive () |
void | enter () const MRPT_OVERRIDE |
Enter. More... | |
void | leave () const MRPT_OVERRIDE |
Leave. More... | |
bool | try_enter () const MRPT_OVERRIDE |
Returns true if adquired; false otherwise. More... | |
Private Attributes | |
void * | m_data |
std::recursive_mutex*. Opaque ptr until MRPT 2.0.0 in which we could expose C++11 to user headers More... | |
CCriticalSectionRecursive::CCriticalSectionRecursive | ( | ) |
Definition at line 66 of file CCriticalSection.cpp.
|
virtual |
Definition at line 70 of file CCriticalSection.cpp.
References m_data.
|
virtual |
Enter.
If | the calling thread already possesses this critical section (it would be a dead-lock). |
Implements mrpt::synch::CAbstractMutex.
Definition at line 77 of file CCriticalSection.cpp.
References m_data.
Referenced by mrpt::gui::CDisplayWindow3D::get3DSceneAndLock(), mrpt::gui::CDisplayWindow3D::getDefaultViewport(), mrpt::gui::CDisplayWindow3D::getLastMousePositionRay(), mrpt::nav::CAbstractPTGBasedReactive::preDestructor(), mrpt::gui::CDisplayWindow3D::setImageView(), mrpt::gui::CDisplayWindow3D::setImageView_fast(), and mrpt::gui::CDisplayWindow3D::~CDisplayWindow3D().
|
virtual |
Leave.
If | the calling thread is not the current owner of the critical section. |
Implements mrpt::synch::CAbstractMutex.
Definition at line 83 of file CCriticalSection.cpp.
References m_data.
Referenced by mrpt::gui::CDisplayWindow3D::getDefaultViewport(), mrpt::gui::CDisplayWindow3D::getLastMousePositionRay(), mrpt::nav::CAbstractPTGBasedReactive::preDestructor(), mrpt::gui::CDisplayWindow3D::setImageView(), mrpt::gui::CDisplayWindow3D::setImageView_fast(), mrpt::gui::CDisplayWindow3D::unlockAccess3DScene(), and mrpt::gui::CDisplayWindow3D::~CDisplayWindow3D().
|
virtual |
Returns true if adquired; false otherwise.
Implements mrpt::synch::CAbstractMutex.
Definition at line 89 of file CCriticalSection.cpp.
References m_data.
|
private |
std::recursive_mutex*. Opaque ptr until MRPT 2.0.0 in which we could expose C++11 to user headers
Definition at line 69 of file CCriticalSection.h.
Referenced by enter(), leave(), try_enter(), and ~CCriticalSectionRecursive().
Page generated by Doxygen 1.8.14 for MRPT 1.5.5 Git: e06b63dbf Fri Dec 1 14:41:11 2017 +0100 at lun oct 28 01:31:35 CET 2019 |