ITK  4.9.0
Insight Segmentation and Registration Toolkit
Public Types | Public Member Functions | Protected Attributes | List of all members
itk::SimpleFastMutexLock Class Reference

#include <itkSimpleFastMutexLock.h>

Detailed Description

Critical section locking class that can be allocated on the stack.

SimpleFastMutexLock is used by FastMutexLock to perform mutex locking. SimpleFastMutexLock is not a subclass of Object and is designed to be allocated on the stack.

Definition at line 49 of file itkSimpleFastMutexLock.h.

Public Types

typedef SimpleFastMutexLock Self
 

Public Member Functions

void Lock () const
 
bool TryLock () const
 
void Unlock () const
 
 SimpleFastMutexLock ()
 
 ~SimpleFastMutexLock ()
 

Protected Attributes

FastMutexType m_FastMutexLock
 

Member Typedef Documentation

Standard class typedefs.

Definition at line 53 of file itkSimpleFastMutexLock.h.

Constructor & Destructor Documentation

itk::SimpleFastMutexLock::SimpleFastMutexLock ( )

Constructor and destructor left public purposely because of stack allocation.

itk::SimpleFastMutexLock::~SimpleFastMutexLock ( )

Constructor and destructor left public purposely because of stack allocation.

Member Function Documentation

void itk::SimpleFastMutexLock::Lock ( ) const

Lock access.

bool itk::SimpleFastMutexLock::TryLock ( ) const

Non-blocking Lock access.

Returns
bool - true if lock is captured, false if it was already heald by someone else.
void itk::SimpleFastMutexLock::Unlock ( ) const

Unlock access.

Member Data Documentation

FastMutexType itk::SimpleFastMutexLock::m_FastMutexLock
mutableprotected

Definition at line 73 of file itkSimpleFastMutexLock.h.


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