Privacy
An open-source, flexible 3D physical simulation framework
mars::utils::MutexLocker Class Reference

#include <MutexLocker.h>

Public Member Functions

 MutexLocker (Mutex *mutex)
 
 ~MutexLocker ()
 
void unlock ()
 
void relock ()
 

Private Member Functions

 MutexLocker (const MutexLocker &)
 
MutexLockeroperator= (const MutexLocker &)
 

Private Attributes

MutexmyMutex
 
bool isLocked
 

Detailed Description

Definition at line 30 of file MutexLocker.h.

Constructor & Destructor Documentation

◆ MutexLocker() [1/2]

mars::utils::MutexLocker::MutexLocker ( Mutex mutex)
explicit

Definition at line 28 of file MutexLocker.cpp.

◆ ~MutexLocker()

mars::utils::MutexLocker::~MutexLocker ( )

Definition at line 33 of file MutexLocker.cpp.

◆ MutexLocker() [2/2]

mars::utils::MutexLocker::MutexLocker ( const MutexLocker )
private

Member Function Documentation

◆ operator=()

MutexLocker& mars::utils::MutexLocker::operator= ( const MutexLocker )
private

◆ relock()

void mars::utils::MutexLocker::relock ( )

Definition at line 45 of file MutexLocker.cpp.

◆ unlock()

void mars::utils::MutexLocker::unlock ( )

Definition at line 38 of file MutexLocker.cpp.

Member Data Documentation

◆ isLocked

bool mars::utils::MutexLocker::isLocked
private

Definition at line 43 of file MutexLocker.h.

◆ myMutex

Mutex* mars::utils::MutexLocker::myMutex
private

Definition at line 42 of file MutexLocker.h.


The documentation for this class was generated from the following files: