Main MRPT website > C++ reference for MRPT 1.5.7
List of all members | Public Member Functions | Private Attributes
mrpt::synch::CCriticalSectionRecursive Class Reference

Detailed Description

Recursive mutex: allow recursive locks by the owner thread.

See also
CCriticalSectionLocker, CCriticalSection
Note
[New in MRPT 1.5.0]

Definition at line 65 of file CCriticalSection.h.

#include <mrpt/synch/CCriticalSection.h>

Inheritance diagram for mrpt::synch::CCriticalSectionRecursive:
Inheritance graph

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

voidm_data
 std::recursive_mutex*. Opaque ptr until MRPT 2.0.0 in which we could expose C++11 to user headers More...
 

Constructor & Destructor Documentation

◆ CCriticalSectionRecursive()

CCriticalSectionRecursive::CCriticalSectionRecursive ( )

Definition at line 71 of file CCriticalSection.cpp.

◆ ~CCriticalSectionRecursive()

CCriticalSectionRecursive::~CCriticalSectionRecursive ( )
virtual

Definition at line 75 of file CCriticalSection.cpp.

References m_data.

Member Function Documentation

◆ enter()

void CCriticalSectionRecursive::enter ( ) const
virtual

◆ leave()

void CCriticalSectionRecursive::leave ( ) const
virtual

◆ try_enter()

bool CCriticalSectionRecursive::try_enter ( ) const
virtual

Returns true if adquired; false otherwise.

Implements mrpt::synch::CAbstractMutex.

Definition at line 94 of file CCriticalSection.cpp.

References m_data.

Member Data Documentation

◆ 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 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