From 64b9108a58d3483e9b63511c4cf74b12dceeb0f6 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Wed, 11 Mar 2015 16:50:13 +0100 Subject: Change thread waiting technology. Slower but does not do crappy things like malloc at impractical places. --- src/kernel/include/thread.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/kernel/include/thread.h') diff --git a/src/kernel/include/thread.h b/src/kernel/include/thread.h index 698c4c6..fbcc178 100644 --- a/src/kernel/include/thread.h +++ b/src/kernel/include/thread.h @@ -36,6 +36,10 @@ typedef struct thread { struct thread *next_in_queue; struct thread *next_in_proc; + void** waiting_on; + int n_waiting_on; + struct thread *next_waiter; + bool must_exit; } thread_t; -- cgit v1.2.3