12#ifndef __METAL_CONDITION__H__
13#define __METAL_CONDITION__H__
15#include <metal/mutex.h>
16#include <metal/utilities.h>
72#include <metal/system/@PROJECT_SYSTEM@/condition.h>
static int metal_condition_signal(struct metal_condition *cv)
Notify one waiter. Before calling this function, the caller should have acquired the mutex.
static int metal_condition_broadcast(struct metal_condition *cv)
Notify all waiters. 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:14
static void metal_condition_init(struct metal_condition *cv)
Initialize a libmetal condition variable.