The HPCxx_Barrier class is used in conjunction with the HPCxx_Group class to implement the group barrier operation. The barrier() member function will force a thread which performs it to block until every other thread in its group has also called it.

A thread can participate in more than one barrier group, and a barrier can be deallocated. The thread count of a group may by changed, a new barrier may be allocated and threads can request new keys.

Class Definition

class HPCxx_Barrier {
  HPCxx_Barrier(int s);
  HPCxx_Barrier(HPCxx_Group &g);

  int getKey(); 
  void operator()(int key); 
  void barrier(int key;


Last modified: Thu Apr 22 02:20:37 EST 1999