#include <itkFastMutexLock.h>
Inheritance diagram for itk::FastMutexLock:
Public Types | |
typedef FastMutexLock | Self |
typedef Object | Superclass |
typedef SmartPointer< Self > | Pointer |
typedef SmartPointer< const Self > | ConstPointer |
Public Member Functions | |
virtual const char * | GetClassName () const |
void | Lock (void) |
void | Unlock (void) |
Static Public Member Functions | |
Pointer | New () |
Protected Member Functions | |
FastMutexLock () | |
~FastMutexLock () | |
void | PrintSelf (std::ostream &os, Indent indent) const |
Protected Attributes | |
SimpleFastMutexLock | m_SimpleFastMutexLock |
FastMutexLock allows the locking of variables which are accessed through different threads. This header file also defines SimpleFastMutexLock which is not a subclass of Object. The API is identical to that of MutexLock, and the behavior is identical as well, except on Windows 9x/NT platforms. The only difference on these platforms is that MutexLock is more flexible, in that it works across processes as well as across threads, but also costs more, in that it evokes a 600-cycle x86 ring transition. The FastMutexLock provides a higher-performance equivalent (on Windows) but won't work across processes. Since it is unclear how, in itk, an object at the itk level can be shared across processes in the first place, one should use FastMutexLock unless one has a very good reason to use MutexLock. If higher-performance equivalents for non-Windows platforms (Irix, SunOS, etc) are discovered, they should replace the implementations in this class
Definition at line 51 of file itkFastMutexLock.h.
|
Reimplemented from itk::Object. Definition at line 58 of file itkFastMutexLock.h. |
|
Reimplemented from itk::Object. Definition at line 57 of file itkFastMutexLock.h. |
|
Standard class typedefs. Reimplemented from itk::Object. Definition at line 55 of file itkFastMutexLock.h. |
|
Reimplemented from itk::Object. Definition at line 56 of file itkFastMutexLock.h. |
|
Definition at line 73 of file itkFastMutexLock.h. |
|
Definition at line 74 of file itkFastMutexLock.h. |
|
Run-time type information. Reimplemented from itk::Object.
|
|
Lock the itkFastMutexLock. Definition at line 85 of file itkFastMutexLock.h. References itk::SimpleFastMutexLock::Lock(), and m_SimpleFastMutexLock. |
|
Method for creation. Reimplemented from itk::Object.
|
|
Methods invoked by Print() to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes. Reimplemented from itk::Object.
|
|
Unlock the FastMutexLock. Definition at line 90 of file itkFastMutexLock.h. References m_SimpleFastMutexLock, and itk::SimpleFastMutexLock::Unlock(). |
|
Definition at line 76 of file itkFastMutexLock.h. |