diff options
author | Pixel <pixel@nobis-crew.org> | 2011-11-29 01:21:48 -0800 |
---|---|---|
committer | Pixel <pixel@nobis-crew.org> | 2011-11-29 01:21:48 -0800 |
commit | 64120be7af8d2ded76cd3a3401fc69cadb96351e (patch) | |
tree | c66c39790bfb086240f15f1ca77264fe6a44db05 /includes/TaskMan.h | |
parent | 07b2ec5910e103fc38daa55d0fd0e931b66f5626 (diff) |
The TaskManager no longer waits on the pop(); instead it waits in the libev loop; also the Queue<> template changed for a naive but std-less implementation.
Diffstat (limited to 'includes/TaskMan.h')
-rw-r--r-- | includes/TaskMan.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/TaskMan.h b/includes/TaskMan.h index 026ea88..1e7a2f1 100644 --- a/includes/TaskMan.h +++ b/includes/TaskMan.h @@ -51,7 +51,7 @@ class TaskMan { struct taskHasher { size_t operator()(const Task * t) const { return reinterpret_cast<uintptr_t>(t); } }; typedef gnu::hash_set<Task *, taskHasher> taskHash_t; taskHash_t m_tasks, m_signaledTasks; - Queue<Task *> m_pendingAdd; + Queue<Task> m_pendingAdd; bool m_stopped; struct ev_loop * m_loop; bool m_allowedToSignal; |