36 #ifndef __METAL_CONDITION__H__ 37 #define __METAL_CONDITION__H__ 39 #include "metal/mutex.h" 40 #include "metal/utilities.h" 89 #include "metal/system/@PROJECT_SYSTEM@/condition.h"
static void metal_condition_init(struct metal_condition *cv)
Initialize a libmetal condition variable.
static int metal_condition_broadcast(struct metal_condition *cv)
Notify all waiters. Before calling this function, the caller should have acquired the mutex...
static int metal_condition_signal(struct metal_condition *cv)
Notify one waiter. Before calling this function, the caller should have acquired the mutex...
int metal_condition_wait(struct metal_condition *cv, metal_mutex_t *m)
Block until the condition variable is notified. Before calling this function, the caller should have ...
Definition: condition.c:38