Sun 12 Jan 19:29:58 CET 2025
This commit is contained in:
parent
cb55d61788
commit
bab1b053bf
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user