diff options
author | Anton Kling <anton@kling.gg> | 2024-03-17 20:55:34 +0100 |
---|---|---|
committer | Anton Kling <anton@kling.gg> | 2024-03-17 20:55:34 +0100 |
commit | 0dccff86e50dfe1555b8bc29862dba2b972a3705 (patch) | |
tree | 8d0c354c65278afdc3427bb52e1e63900ccdbc05 /kernel/queue.h | |
parent | 2e8b474d4219e7faaac3823e73c8d528c2698a37 (diff) |
stuff
Diffstat (limited to 'kernel/queue.h')
-rw-r--r-- | kernel/queue.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/kernel/queue.h b/kernel/queue.h index 74c7ab8..38cd992 100644 --- a/kernel/queue.h +++ b/kernel/queue.h @@ -1,6 +1,7 @@ #ifndef QUEUE_H #define QUEUE_H #include <lib/list.h> +#include <sched/scheduler.h> #include <stddef.h> #include <string.h> #include <typedefs.h> @@ -16,9 +17,10 @@ struct event { struct event_queue { struct list events; int wait; + process_t *p; }; -int queue_create(u32 *id); +int queue_create(u32 *id, process_t *p); int queue_add(u32 queue_id, struct event *ev, u32 size); int queue_wait(u32 queue_id); int queue_should_block(struct event_queue *q, int *is_empty); |