summaryrefslogtreecommitdiff
path: root/os/thread.cpp
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@jvnv.net>2013-07-07 21:44:10 +0200
committerVegard Storheil Eriksen <zyp@jvnv.net>2013-07-20 08:43:10 +0200
commit657d427aa41e6e05c8c4d4b1179b42d3363e8018 (patch)
treef6d7214d07bcb6a70dab933515ad8427d032c473 /os/thread.cpp
parent39b1c8afdf2713ca12123ef00f32d14a95dadab4 (diff)
Use intrusive list to keep track of ready threads.
Diffstat (limited to 'os/thread.cpp')
-rw-r--r--os/thread.cpp3
1 files changed, 2 insertions, 1 deletions
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> Thread::ready_queue __attribute__ ((init_priority (1000)));
+Thread Thread::main_thread __attribute__ ((init_priority (1001)));
Thread* Thread::active_thread = &Thread::main_thread;