You've already forked glider
mirror of
https://gitlab.com/zephray/glider.git
synced 2026-07-29 10:40:39 +00:00
14 lines
351 B
C
14 lines
351 B
C
#pragma once
|
|
|
|
#include <stdbool.h>
|
|
|
|
typedef struct {
|
|
volatile bool armed;
|
|
volatile bool pending;
|
|
} wake_event_latch_t;
|
|
|
|
void wake_event_latch_arm(wake_event_latch_t *latch);
|
|
void wake_event_latch_disarm(wake_event_latch_t *latch);
|
|
void wake_event_latch_signal(wake_event_latch_t *latch);
|
|
bool wake_event_latch_take(wake_event_latch_t *latch);
|