summaryrefslogtreecommitdiff
path: root/thread.h
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@jvnv.net>2011-09-04 02:13:08 +0200
committerVegard Storheil Eriksen <zyp@jvnv.net>2011-09-04 02:13:08 +0200
commitadb9868498b93f89ae875df764d475c9f5c16049 (patch)
treedb75a02e39434330d465f4d3232e2c48d79a954f /thread.h
parentbb2955ea4bb5c0f9431653351a47b373a2391389 (diff)
Added Thread::start().
Diffstat (limited to 'thread.h')
-rw-r--r--thread.h4
1 files changed, 3 insertions, 1 deletions
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;
}