diff options
author | Pixel <pixel@nobis-crew.org> | 2011-11-17 08:54:14 -0800 |
---|---|---|
committer | Pixel <pixel@nobis-crew.org> | 2011-11-17 08:54:14 -0800 |
commit | e435e4bb3c0744acf5b36c6e441d309d10af1257 (patch) | |
tree | bc7bd9e8910f63bc269926be3e1f8382a8473a7f /includes/Task.h | |
parent | 250b303a9e36f1ddcb3e3b28a130a8674839a3a7 (diff) |
Introducing the fact we need a more efficient stack allocator, and that it's to be performed from the task manager.
Diffstat (limited to 'includes/Task.h')
-rw-r--r-- | includes/Task.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/includes/Task.h b/includes/Task.h index 9244347..5865831 100644 --- a/includes/Task.h +++ b/includes/Task.h @@ -135,8 +135,9 @@ class Task { } TaskMan * getMyTaskMan() { return m_taskMan; } private: - size_t stackSize() { return 128 * 1024; } + static size_t stackSize() { return 64 * 1024; } void setup(TaskMan * taskMan); + static bool needsStacks(); void switchTo(); static void CALLBACK coroutineTrampoline(void *); void coroutine(); |