SCIRun
5.0
|
#include <Barrier.h>
Public Member Functions | |
Barrier (const char *name) | |
virtual | ~Barrier () |
Destroy the barrier. More... | |
void | wait (int numThreads) |
|
explicit |
Create a barrier which will be used by a variable number of threads. name
should be a static string which describes the primitive for debugging purposes.
|
virtual |
Destroy the barrier.
void wait | ( | int | numThreads | ) |
This causes all of the threads to block at this method until all numThreads threads have called the method. After all threads have arrived, they are all allowed to return.