Public Member Functions | Private Attributes | List of all members
karto::Mutex::ScopedLock Class Reference

#include <Mutex.h>

Public Member Functions

void Acquire (Mutex &rMutex)
 
void Release ()
 
 ScopedLock ()
 
 ScopedLock (Mutex &rMutex)
 
bool TryAcquire (Mutex &rMutex)
 
 ~ScopedLock ()
 

Private Attributes

ScopedLockPrivatem_pScopedLockPrivate
 

Detailed Description

Wrapper for TBB mutex::scopedlock

Definition at line 60 of file Mutex.h.

Constructor & Destructor Documentation

karto::Mutex::ScopedLock::ScopedLock ( )

Definition at line 68 of file Mutex.cpp.

karto::Mutex::ScopedLock::ScopedLock ( Mutex rMutex)

Locks with the given mutex after construction

Parameters
rMutexmutex to acquire

Definition at line 73 of file Mutex.cpp.

karto::Mutex::ScopedLock::~ScopedLock ( )

Definition at line 79 of file Mutex.cpp.

Member Function Documentation

void karto::Mutex::ScopedLock::Acquire ( Mutex rMutex)

Locks with the given mutex

Parameters
rMutexmutex to acquire

Definition at line 86 of file Mutex.cpp.

void karto::Mutex::ScopedLock::Release ( )

Releases the lock

Definition at line 102 of file Mutex.cpp.

bool karto::Mutex::ScopedLock::TryAcquire ( Mutex rMutex)

Tries to lock with the given mutex

Parameters
rMutexmutex to acquire
Returns
true if the mutex has been acquired, false otherwise

Definition at line 93 of file Mutex.cpp.

Member Data Documentation

ScopedLockPrivate* karto::Mutex::ScopedLock::m_pScopedLockPrivate
private

Definition at line 92 of file Mutex.h.


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


nav2d_karto
Author(s): Sebastian Kasperski
autogenerated on Thu Jun 6 2019 19:20:25