Nut/OS  4.10.3
API Reference
condition.h File Reference
#include <sys/atom.h>
#include <sys/mutex.h>
#include <sys/types.h>
Include dependency graph for condition.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  _CONDITION
 Condition variable. More...


 Condition variable type.


int NutConditionInit (CONDITION *cond)
 Creates a new condition variable.
void NutConditionLock (CONDITION *cond)
 Locks the condition mutex.
void NutConditionUnlock (CONDITION *cond)
 Unocks the condition mutex.
int NutConditionWait (CONDITION *cond)
 Waits until this thread is woken up on cond.
int NutConditionSignal (CONDITION *cond)
 If threads are waiting for cond, exactly one of them is woken up.
int NutConditionBroadcast (CONDITION *cond)
 If threads are waiting for cond, all of them are woken up.
void NutConditionFree (CONDITION *cond)
 Free the ressources used by this condition variable.