mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 20:58:22 +00:00
kernel: new event abstraction
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
#ifndef _EVENT_H
|
||||
#define _EVENT_H
|
||||
|
||||
#include <semaphore.h>
|
||||
typedef semaphore_t event_t;
|
||||
|
||||
int event_wait(event_t *event, bool interruptible);
|
||||
void event_signal(event_t *event);
|
||||
|
||||
#define EVENT_INIT(x) SEMAPHORE_INIT(x, 0);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user