summaryrefslogtreecommitdiff
path: root/include/TaskMan.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/TaskMan.h')
-rw-r--r--include/TaskMan.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/include/TaskMan.h b/include/TaskMan.h
index 59363f8..2bc7495 100644
--- a/include/TaskMan.h
+++ b/include/TaskMan.h
@@ -25,8 +25,11 @@ typedef int sigset_t;
#endif
#include <signal.h>
-#include <Task.h>
+#include <Atomic.h>
#include <vector>
+#include <Handle.h>
+
+class Task;
class TaskMan : public Base {
public:
@@ -80,6 +83,8 @@ class TaskMan : public Base {
Task * T;
};
typedef std::vector<Task *> TaskList_t;
+
+ static void ProcessNewTasks();
static TaskList_t TaskList;
static TaskList_t Zombies;
@@ -96,6 +101,9 @@ class TaskMan : public Base {
static sigset_t sigchildset;
static int got_sigchild;
static bool CheckDead(Task *);
+ static Atomic::Queue<Task> new_tasks;
};
+#include <Task.h>
+
#endif