![]() |
ITK
4.13.0
Insight Segmentation and Registration Toolkit
|
#include <itkMutexLockHolder.h>
A container to store a Mutex. This holder class for ensuring that locks are released in the event of an exception being thrown after the lock was created.
Definition at line 44 of file itkMutexLockHolder.h.
Public Types | |
typedef TMutex | MutexType |
typedef MutexLockHolder | Self |
Public Member Functions | |
MutexLockHolder (MutexType &mutex, const bool noblock=false) | |
~MutexLockHolder () | |
bool | GetLockCaptured () const |
operator bool () const | |
Protected Attributes | |
bool | m_LockCaptured |
MutexType & | m_Mutex |
typedef TMutex itk::MutexLockHolder< TMutex >::MutexType |
Definition at line 48 of file itkMutexLockHolder.h.
typedef MutexLockHolder itk::MutexLockHolder< TMutex >::Self |
Definition at line 47 of file itkMutexLockHolder.h.
|
inline |
Definition at line 50 of file itkMutexLockHolder.h.
References itk::MutexLockHolder< TMutex >::m_LockCaptured, and itk::MutexLockHolder< TMutex >::m_Mutex.
|
inline |
Definition at line 71 of file itkMutexLockHolder.h.
References itk::MutexLockHolder< TMutex >::m_LockCaptured, and itk::MutexLockHolder< TMutex >::m_Mutex.
|
inline |
True if the holder has acquired the lock, for no-blocking
Definition at line 67 of file itkMutexLockHolder.h.
References itk::MutexLockHolder< TMutex >::m_LockCaptured.
|
inline |
True if the holder has acquired the lock, for no-blocking
Definition at line 68 of file itkMutexLockHolder.h.
References itk::MutexLockHolder< TMutex >::m_LockCaptured.
|
protected |
Definition at line 81 of file itkMutexLockHolder.h.
Referenced by itk::MutexLockHolder< TMutex >::GetLockCaptured(), itk::MutexLockHolder< TMutex >::MutexLockHolder(), itk::MutexLockHolder< TMutex >::operator bool(), and itk::MutexLockHolder< TMutex >::~MutexLockHolder().
|
protected |
Definition at line 80 of file itkMutexLockHolder.h.
Referenced by itk::MutexLockHolder< TMutex >::MutexLockHolder(), and itk::MutexLockHolder< TMutex >::~MutexLockHolder().