summaryrefslogtreecommitdiff
path: root/lib/Task.cc
diff options
context:
space:
mode:
authorpixel <pixel>2006-10-28 16:42:19 +0000
committerpixel <pixel>2006-10-28 16:42:19 +0000
commit8fdf9104af7c10a778e4ed6bd0c501c7d2087cdd (patch)
treed309b4932810ab6e320a287dcd1a24e5e27a15ad /lib/Task.cc
parentf7f07a91a9a033698b338b21e4a3974da4b518d9 (diff)
Task manager now has timeout support.
Diffstat (limited to 'lib/Task.cc')
-rw-r--r--lib/Task.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Task.cc b/lib/Task.cc
index 4d161ea..999881e 100644
--- a/lib/Task.cc
+++ b/lib/Task.cc
@@ -10,7 +10,7 @@
#include "BString.h"
#include "gettext.h"
-Task::Task() : current(0), state(TASK_ON_HOLD), stopped(false), suspended(false), wbta(0) {
+Task::Task() : current(0), state(TASK_ON_HOLD), stopped(false), suspended(false), wbta(0), BurstHandle(0) {
TaskMan::AddTask(this);
}
@@ -83,7 +83,7 @@ void Task::WaitFor(pid_t p) {
TaskMan::WaitFor(p, this);
}
-void Task::WaitFor(timeval t, int flags) {
+void Task::WaitFor(const timeval & t, int flags) {
TaskMan::WaitFor(t, this, flags);
}