Tulip_Barrier
The Tulip_Barrier class is used in conjunction with the Tulip_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 {
Tulip_Barrier(int s);
Tulip_Barrier(Tulip_Group &g);
int getKey();
void operator()(int key);
void barrier(int key;
};
Examples
Suvas Vajracharya