From 657d427aa41e6e05c8c4d4b1179b42d3363e8018 Mon Sep 17 00:00:00 2001 From: Vegard Storheil Eriksen Date: Sun, 7 Jul 2013 21:44:10 +0200 Subject: Use intrusive list to keep track of ready threads. --- os/thread.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'os/thread.cpp') diff --git a/os/thread.cpp b/os/thread.cpp index 426fffd..0f2437d 100644 --- a/os/thread.cpp +++ b/os/thread.cpp @@ -1,4 +1,5 @@ #include "thread.h" -Thread Thread::main_thread __attribute__ ((init_priority (1000))); +List Thread::ready_queue __attribute__ ((init_priority (1000))); +Thread Thread::main_thread __attribute__ ((init_priority (1001))); Thread* Thread::active_thread = &Thread::main_thread; -- cgit v1.2.3