g2o
Public Member Functions | Private Member Functions | Private Attributes | List of all members
g2o::ScopedOpenMPMutex Class Reference

lock a mutex within a scope More...

#include <openmp_mutex.h>

Collaboration diagram for g2o::ScopedOpenMPMutex:
Collaboration graph
[legend]

Public Member Functions

 ScopedOpenMPMutex (OpenMPMutex *mutex)
 
 ~ScopedOpenMPMutex ()
 

Private Member Functions

 ScopedOpenMPMutex (const ScopedOpenMPMutex &)
 
void operator= (const ScopedOpenMPMutex &)
 

Private Attributes

OpenMPMutex *const _mutex
 

Detailed Description

lock a mutex within a scope

Definition at line 84 of file openmp_mutex.h.

Constructor & Destructor Documentation

g2o::ScopedOpenMPMutex::ScopedOpenMPMutex ( OpenMPMutex mutex)
inlineexplicit

Definition at line 87 of file openmp_mutex.h.

87 : _mutex(mutex) { _mutex->lock(); }
OpenMPMutex *const _mutex
Definition: openmp_mutex.h:90
g2o::ScopedOpenMPMutex::~ScopedOpenMPMutex ( )
inline

Definition at line 88 of file openmp_mutex.h.

88 { _mutex->unlock(); }
OpenMPMutex *const _mutex
Definition: openmp_mutex.h:90
g2o::ScopedOpenMPMutex::ScopedOpenMPMutex ( const ScopedOpenMPMutex )
private

Member Function Documentation

void g2o::ScopedOpenMPMutex::operator= ( const ScopedOpenMPMutex )
private

Member Data Documentation

OpenMPMutex* const g2o::ScopedOpenMPMutex::_mutex
private

Definition at line 90 of file openmp_mutex.h.


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