From a61201b8047ebe278cfb281723a4bf6c82556472 Mon Sep 17 00:00:00 2001 From: Christian Cunningham Date: Thu, 6 Jan 2022 15:51:48 -0800 Subject: Scheduling --- include/lib/q.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'include/lib/q.h') diff --git a/include/lib/q.h b/include/lib/q.h index cf75c6d..11d7ab7 100644 --- a/include/lib/q.h +++ b/include/lib/q.h @@ -4,16 +4,17 @@ struct Q_base { struct Q* next; struct Q* last; -}; +} __attribute__((packed)); struct Q { struct Q* next; void* data; -}; +} __attribute__((packed)); struct Q_base* new_q(); void push_q(struct Q_base* qb, void* val); void pop_q(struct Q_base* qb); +unsigned long length_q(struct Q_base* qb); #define show_q(QQ, TYPE) { \ if (QQ->next != 0) { \ -- cgit v1.2.1