From adb9868498b93f89ae875df764d475c9f5c16049 Mon Sep 17 00:00:00 2001 From: Vegard Storheil Eriksen Date: Sun, 4 Sep 2011 02:13:08 +0200 Subject: Added Thread::start(). --- thread.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'thread.h') diff --git a/thread.h b/thread.h index 1349ff6..2213d6f 100644 --- a/thread.h +++ b/thread.h @@ -48,7 +48,9 @@ class Thread { // frame->lr = thread exit handler sp->pc = (uint32_t)func; sp->psr = 0x01000000; - + } + + void start() { next = active_thread->next; active_thread->next = this; } -- cgit v1.2.3