Generic Lightweight Thread (GLT) Library
2.5
A common API for Lightweight Thread solutions
|
Functions | |
void | glt_cond_create (GLT_cond *cond) |
Creates a condition. More... | |
void | glt_cond_free (GLT_cond *cond) |
Destroys a condition. More... | |
void | glt_cond_signal (GLT_cond cond) |
Sends a signal for a condition. More... | |
void | glt_cond_wait (GLT_cond cond, GLT_mutex mutex) |
A ULT waits in this point for a signal. More... | |
void | glt_cond_broadcast (GLT_cond cond) |
Broadcast a signal for a condition. More... | |
These functions manage the GLT conditions for the ULTs.
void glt_cond_broadcast | ( | GLT_cond | cond | ) |
Broadcast a signal for a condition.
glt_cond_broadcast()
broadcasts a signal for ULTs.
[in] | cond | Handle to the target GLT_condition . |
void glt_cond_create | ( | GLT_cond * | cond | ) |
Creates a condition.
glt_cond_create()
creates a condition for ULTs.
[in,out] | cond | Hande to newly created GLT_condition |
void glt_cond_free | ( | GLT_cond * | cond | ) |
Destroys a condition.
glt_cond_free()
destroys a condition for ULTs.
[in] | cond | Handle to the target GLT_condition . |
void glt_cond_signal | ( | GLT_cond | cond | ) |
Sends a signal for a condition.
glt_cond_signal()
sends a signal for ULTs.
[in] | cond | Handle to the target GLT_condition . |
A ULT waits in this point for a signal.
glt_cond_wait()
a ULT waits at this point for a signal to access the mutex.
[in] | cond | Handle to the target GLT_condition . |
[in] | mutex | Handle to the target GLT_mutex . |