OpenGL Vizserver Reference Page


NAME
vsBarrier - A barrier synchronization primitive

HEADER FILE
#include <vizserver/vsLock.h>

PUBLIC METHOD SUMMARY

   Creation and destruction
vsBarrier ( unsigned int level);
~vsBarrier (  );

   Usage
void enter (  );

CLASS DESCRIPTION
The vsBarrier provides a thread rendezvous facility, allowing for multiple threads to block, until all threads in the rendezvous enter() the barrier. The number of threads in the rendezvous is fixed when the object is constructed and cannot be changed during the object's lifetime.

METHOD DESCRIPTIONS

   vsBarrier()
vsBarrier ( unsigned int level);

Constructs a barrier with level threads participating in the rendezvous.

   ~vsBarrier()
~vsBarrier (  );

Destroys this barrier. If any threads are currently waiting at the barrier, the results are undefined.

   enter()
void enter (  );

Indicates that the calling thread has arrived at the barrier. The caller blocks until all other threads in the rendezvous also arrive at the barrier.