summaryrefslogtreecommitdiff
path: root/src/TaskMan.cc
diff options
context:
space:
mode:
authorPixel <pixel@nobis-crew.org>2011-11-17 08:54:14 -0800
committerPixel <pixel@nobis-crew.org>2011-11-17 08:54:14 -0800
commite435e4bb3c0744acf5b36c6e441d309d10af1257 (patch)
treebc7bd9e8910f63bc269926be3e1f8382a8473a7f /src/TaskMan.cc
parent250b303a9e36f1ddcb3e3b28a130a8674839a3a7 (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 'src/TaskMan.cc')
-rw-r--r--src/TaskMan.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/TaskMan.cc b/src/TaskMan.cc
index 375a94d..e9e3485 100644
--- a/src/TaskMan.cc
+++ b/src/TaskMan.cc
@@ -134,6 +134,14 @@ Balau::TaskMan::~TaskMan() {
ev_loop_destroy(m_loop);
}
+void * Balau::TaskMan::getStack() {
+ return malloc(Task::stackSize());
+}
+
+void Balau::TaskMan::freeStack(void * stack) {
+ free(stack);
+}
+
void Balau::TaskMan::mainLoop() {
// We need at least one round before bailing :)
do {