Sun 12 Jan 19:29:58 CET 2025

This commit is contained in:
sbosse 2025-01-12 19:30:19 +01:00
parent cb55d61788
commit bab1b053bf

View File

@ -1,3 +1,8 @@
/*
Event queues supporting process blocking
Version: 1.0.2
*/
#include "event_queue.h" #include "event_queue.h"
#include "interrupt.h" #include "interrupt.h"
#include "process.h" #include "process.h"
@ -24,8 +29,8 @@ struct event_queue * event_queue_create_root()
struct event_queue * event_queue_create() struct event_queue * event_queue_create()
{ {
struct event_queue *q = kmalloc(sizeof(*q)); struct event_queue *q = kmalloc(sizeof(struct event_queue));
memset(q,0,sizeof(*q)); memset(q,0,sizeof(struct event_queue));
return q; return q;
} }