#include <itkBarrier.h>
Inheritance diagram for itk::Barrier:
Public Types | |
typedef Barrier | Self |
typedef LightObject | Superclass |
typedef SmartPointer< Self > | Pointer |
typedef SmartPointer< const Self > | ConstPointer |
Public Member Functions | |
virtual const char * | GetNameOfClass () const |
void | Initialize (unsigned int) |
void | Wait () |
Static Public Member Functions | |
Pointer | New () |
A barrier class is used to synchronize threaded execution by allowing threads to block until each has reached a desired state. As each thread enters the barrier it blocks. When all threads have entered the barrier, all all released and continue to execute.
A thread enters the barrier by calling Wait() on the barrier class. To set up a barrier class, call Initialize(n) where n is the number of waiting threads that will trigger a release of the barrier.
Definition at line 62 of file itkBarrier.h.
|
Reimplemented from itk::LightObject. Definition at line 70 of file itkBarrier.h. |
|
Reimplemented from itk::LightObject. Definition at line 69 of file itkBarrier.h. Referenced by itk::IsoContourDistanceImageFilter< TInputImage, TOutputImage >::~IsoContourDistanceImageFilter(). |
|
Standard class typedefs. Reimplemented from itk::LightObject. Definition at line 67 of file itkBarrier.h. |
|
Definition at line 68 of file itkBarrier.h. |
|
Run-time type information (and related methods). Reimplemented from itk::LightObject. |
|
Creates a new system variable used to implement the barrier. The argument to this method is the number of threads that must Wait() on the barrier before it is cleared. |
|
Method for creation through the object factory. Reimplemented from itk::LightObject. |
|
A thread calling this method waits until m_NumberOfThreads have called Wait() on the barrier. When the final expected thread calls Wait(), all threads are released. |