summaryrefslogtreecommitdiff
path: root/includes/TaskMan.h
diff options
context:
space:
mode:
authorPixel <pixel@nobis-crew.org>2011-11-17 11:17:57 -0800
committerPixel <pixel@nobis-crew.org>2011-11-17 11:17:57 -0800
commit2cb2961c9f6062e867b6ccc3d9067f55c7b81ea4 (patch)
tree7846e0849a6f2cde216596a1ab144a69c50f5a60 /includes/TaskMan.h
parente435e4bb3c0744acf5b36c6e441d309d10af1257 (diff)
Cleaning some code, redesigning a bit the stack allocation problem from the task manager, and actually implementing it properly.
Diffstat (limited to 'includes/TaskMan.h')
-rw-r--r--includes/TaskMan.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/includes/TaskMan.h b/includes/TaskMan.h
index b944f09..c63695a 100644
--- a/includes/TaskMan.h
+++ b/includes/TaskMan.h
@@ -6,7 +6,7 @@
#endif
#include <ev++.h>
#include <ext/hash_set>
-#include <vector>
+#include <queue>
#include <Threads.h>
#include <Exceptions.h>
@@ -55,6 +55,8 @@ class TaskMan {
struct ev_loop * m_loop;
bool m_allowedToSignal;
ev::async m_evt;
+ std::queue<void *> m_stacks;
+ int m_nStacks;
};
template<class T>