Cygdrvcondinit, Cygdrvconddestroy, Cyg_drv_cond_destroy – Comtrol eCos User Manual
Page 401: Cyg_drv_cond_wait, Cyg_drv_cond_init

Chapter 18. Device Driver Interface to the Kernel
cyg_drv_cond_init
Function:
void cyg_drv_cond_init( cyg_drv_cond *cond, cyg_drv_mutex *mutex )
Arguments:
cond
- condition variable to initialize
mutex
- mutex to associate with this condition variable
Result:
None
Level:
Thread
Description:
Initialize the condition variable pointed to by the
cond
argument. The
mutex
argument must point to a
mutex with which this condition variable is associated. A thread may only wait on this condition variable
when it has already locked the associated mutex. Waiting will cause the mutex to be unlocked, and when the
thread is reawakened, it will automatically claim the mutex before continuing.
cyg_drv_cond_destroy
Function:
void cyg_drv_cond_destroy( cyg_drv_cond *cond )
Arguments:
cond
- condition variable to destroy
Result:
None
Level:
Thread
Description:
Destroy the condition variable pointed to by the
cond
argument.
297