summaryrefslogtreecommitdiff
path: root/kernel/queue.h
diff options
context:
space:
mode:
authorAnton Kling <anton@kling.gg>2024-03-17 20:55:34 +0100
committerAnton Kling <anton@kling.gg>2024-03-17 20:55:34 +0100
commit0dccff86e50dfe1555b8bc29862dba2b972a3705 (patch)
tree8d0c354c65278afdc3427bb52e1e63900ccdbc05 /kernel/queue.h
parent2e8b474d4219e7faaac3823e73c8d528c2698a37 (diff)
stuff
Diffstat (limited to 'kernel/queue.h')
-rw-r--r--kernel/queue.h4
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);