12#ifndef __METAL_CONDITION__H__
13#error "Include metal/condition.h instead of metal/freertos/condition.h"
16#ifndef __METAL_FREERTOS_CONDITION__H__
17#define __METAL_FREERTOS_CONDITION__H__
19#include <metal/atomic.h>
36#define METAL_CONDITION_INIT { NULL, ATOMIC_VAR_INIT(0) }
int atomic_int
Definition atomic.h:24
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.
static void metal_condition_init(struct metal_condition *cv)
Initialize a libmetal condition variable.