Valid contexts – Comtrol eCos User Manual
Page 74
Advertising
Condition Variables
same condition and at most one thread can continue running. A broadcast should be used if threads check slightly
different conditions, or if the change to the global state might allow multiple threads to proceed.
Valid contexts
cyg_cond_init
is typically called during system initialization but may also be called in thread context. The
same applies to
cyg_cond_delete
.
cyg_cond_wait
and
cyg_cond_timedwait
may only be called from thread
context since they may block.
cyg_cond_signal
and
cyg_cond_broadcast
may be called from thread or DSR
context.
74
Advertising