itk::SimpleFastMutexLock Class Reference
[OS System Objects]

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

#include <itkSimpleFastMutexLock.h>

Collaboration diagram for itk::SimpleFastMutexLock:

Collaboration graph
[legend]

List of all members.

Public Types

typedef SimpleFastMutexLock Self

Public Member Functions

 SimpleFastMutexLock ()
void Lock () const
void Unlock () const

Protected Attributes

FastMutexType m_FastMutexLock


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 74 of file itkSimpleFastMutexLock.h.


Member Typedef Documentation

Standard class typedefs.

Definition at line 78 of file itkSimpleFastMutexLock.h.


Constructor & Destructor Documentation

itk::SimpleFastMutexLock::SimpleFastMutexLock (  ) 

Constructor and destructor left public purposely because of stack allocation.

Definition at line 26 of file itkSimpleFastMutexLock.cxx.

00027 {
00028 #ifdef ITK_USE_SPROC
00029   init_lock( &m_FastMutexLock );
00030 #endif
00031 
00032 #if defined(_WIN32) && !defined(ITK_USE_PTHREADS)
00033   //this->MutexLock = CreateMutex( NULL, FALSE, NULL );
00034   InitializeCriticalSection(&m_FastMutexLock);
00035 #endif
00036 
00037 #ifdef ITK_USE_PTHREADS
00038 #ifdef ITK_HP_PTHREADS
00039   pthread_mutex_init(&(m_FastMutexLock), pthread_mutexattr_default);
00040 #else
00041   pthread_mutex_init(&(m_FastMutexLock), NULL);
00042 #endif
00043 #endif
00044 
00045 }


Member Function Documentation

void itk::SimpleFastMutexLock::Lock ( void   )  const

void itk::SimpleFastMutexLock::Unlock ( void   )  const


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

Generated at Wed Jul 14 07:52:19 2010 for OTB with doxygen 1.5.6