|
|
In a sense, a barrier is the logical inverse of a lock. Whereas a lock allows only one thread at a time to proceed (to use a resource), a barrier allows no thread to proceed until an entire group of them are ready to proceed.
int barrier_wait( barrier_t *barrier );