Generic Lightweight Thread (GLT) Library  2.5
A common API for Lightweight Thread solutions
 All Functions Variables Groups Pages
Functions
Barrier functions

Functions

void glt_barrier_create (int num_waiters, GLT_barrier *barrier)
 Creates a barrier. More...
 
void glt_barrier_free (GLT_barrier *barrier)
 Destroys a barrier. More...
 
void glt_barrier_wait (GLT_barrier *barrier)
 Waits into a barrier. More...
 

Detailed Description

These functions manage the GLT barriers for the ULTs.

Function Documentation

void glt_barrier_create ( int  num_waiters,
GLT_barrier barrier 
)

Creates a barrier.

glt_barrier_create() creates a barrier for ULTs.

Parameters
[in]num_waitersIndicates the number of ULTs requested to continue
[in,out]barrierHande to newly created GLT_barrier
void glt_barrier_free ( GLT_barrier barrier)

Destroys a barrier.

glt_barrier_free() destroys a barier for ULTs.

Parameters
[in]barrierHandle to the target GLT_barrier.
void glt_barrier_wait ( GLT_barrier barrier)

Waits into a barrier.

glt_barrier_wait() Executed by a ULT, it waits until the number of waiters is achieved.

Parameters
[in]barrierHandle to the target GLT_barrier.