Recursive mutex: allow recursive locks by the owner thread.
Definition at line 65 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 71 of file CCriticalSection.cpp.
|
virtual |
Definition at line 75 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 82 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 88 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 94 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 68 of file CCriticalSection.h.
Referenced by enter(), leave(), try_enter(), and ~CCriticalSectionRecursive().
Page generated by Doxygen 1.8.14 for MRPT 1.5.7 Git: 5902e14cc Wed Apr 24 15:04:01 2019 +0200 at lun oct 28 01:39:17 CET 2019 |