SCIRun  5.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
Barrier Class Reference

#include <Barrier.h>

Inheritance diagram for Barrier:
Reducer< T > SimpleReducer

Public Member Functions

 Barrier (const char *name)
 
virtual ~Barrier ()
 Destroy the barrier. More...
 
void wait (int numThreads)
 

Constructor & Destructor Documentation

Barrier ( const char *  name)
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.

~Barrier ( )
virtual

Destroy the barrier.

Member Function Documentation

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.


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