Recursive mutex: allow recursive locks by the owner thread.
- See also
- CCriticalSectionLocker, CCriticalSection
- Note
- [New in MRPT 1.5.0]
Definition at line 66 of file CCriticalSection.h.
#include <mrpt/synch/CCriticalSection.h>
|
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()
mrpt::synch::CCriticalSectionRecursive::CCriticalSectionRecursive |
( |
| ) |
|
◆ ~CCriticalSectionRecursive()
virtual mrpt::synch::CCriticalSectionRecursive::~CCriticalSectionRecursive |
( |
| ) |
|
|
virtual |
◆ enter()
void mrpt::synch::CCriticalSectionRecursive::enter |
( |
| ) |
const |
|
virtual |
Enter.
- Exceptions
-
If | the calling thread already possesses this critical section (it would be a dead-lock). |
Implements mrpt::synch::CAbstractMutex.
◆ leave()
void mrpt::synch::CCriticalSectionRecursive::leave |
( |
| ) |
const |
|
virtual |
◆ try_enter()
bool mrpt::synch::CCriticalSectionRecursive::try_enter |
( |
| ) |
const |
|
virtual |
◆ m_data
void* mrpt::synch::CCriticalSectionRecursive::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.