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

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...
 

Detailed Description

These functions manage the GLT conditions for the ULTs.

Function Documentation

void glt_cond_broadcast ( GLT_cond  cond)

Broadcast a signal for a condition.

glt_cond_broadcast() broadcasts a signal for ULTs.

Parameters
[in]condHandle to the target GLT_condition.
void glt_cond_create ( GLT_cond cond)

Creates a condition.

glt_cond_create() creates a condition for ULTs.

Parameters
[in,out]condHande to newly created GLT_condition
void glt_cond_free ( GLT_cond cond)

Destroys a condition.

glt_cond_free() destroys a condition for ULTs.

Parameters
[in]condHandle 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.

Parameters
[in]condHandle to the target GLT_condition.
void glt_cond_wait ( GLT_cond  cond,
GLT_mutex  mutex 
)

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.

Parameters
[in]condHandle to the target GLT_condition.
[in]mutexHandle to the target GLT_mutex.