From 2cb2961c9f6062e867b6ccc3d9067f55c7b81ea4 Mon Sep 17 00:00:00 2001 From: Pixel Date: Thu, 17 Nov 2011 11:17:57 -0800 Subject: Cleaning some code, redesigning a bit the stack allocation problem from the task manager, and actually implementing it properly. --- includes/Task.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'includes/Task.h') diff --git a/includes/Task.h b/includes/Task.h index 5865831..2e52747 100644 --- a/includes/Task.h +++ b/includes/Task.h @@ -5,7 +5,7 @@ #include #endif #include -#include +#include #include #include @@ -136,7 +136,7 @@ class Task { TaskMan * getMyTaskMan() { return m_taskMan; } private: static size_t stackSize() { return 64 * 1024; } - void setup(TaskMan * taskMan); + void setup(TaskMan * taskMan, void * stack); static bool needsStacks(); void switchTo(); static void CALLBACK coroutineTrampoline(void *); @@ -152,7 +152,7 @@ class Task { void * m_tls; friend class TaskMan; friend class Events::TaskEvent; - typedef std::vector waitedByList_t; + typedef std::list waitedByList_t; waitedByList_t m_waitedBy; bool m_okayToEAgain; }; -- cgit v1.2.3