Generic Lightweight Thread (GLT) Library
2.5
A common API for Lightweight Thread solutions
|
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... | |
These functions manage the GLT barriers for the ULTs.
void glt_barrier_create | ( | int | num_waiters, |
GLT_barrier * | barrier | ||
) |
Creates a barrier.
glt_barrier_create()
creates a barrier for ULTs.
[in] | num_waiters | Indicates the number of ULTs requested to continue |
[in,out] | barrier | Hande to newly created GLT_barrier |
void glt_barrier_free | ( | GLT_barrier * | barrier | ) |
Destroys a barrier.
glt_barrier_free()
destroys a barier for ULTs.
[in] | barrier | Handle 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.
[in] | barrier | Handle to the target GLT_barrier . |