summaryrefslogtreecommitdiff
path: root/lib/TaskMan.cc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/TaskMan.cc')
-rw-r--r--lib/TaskMan.cc12
1 files changed, 9 insertions, 3 deletions
diff --git a/lib/TaskMan.cc b/lib/TaskMan.cc
index 9efe890..f8ba303 100644
--- a/lib/TaskMan.cc
+++ b/lib/TaskMan.cc
@@ -1,10 +1,16 @@
#include <TaskMan.h>
-int TaskMan::Inited = 0;
+bool TaskMan::Inited = false;
-TaskMan::TaskMan() { }
+TaskMan::TaskMan() throw (GeneralException) {
+ if (Inited) {
+ throw GeneralException("Another Task Manager is already running, aborting.");
+ }
+
+ Inited = true;
+}
-int TaskMan::AddTask(const Task & t) {
+int TaskMan::AddTask(Task * t) {
}