From 9235fbc2a736da2c68eb2dc0a3c1007b4a202d5e Mon Sep 17 00:00:00 2001 From: Pixel Date: Tue, 13 Nov 2001 11:50:37 +0000 Subject: Still working on task system. --- lib/Task.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'lib/Task.cc') diff --git a/lib/Task.cc b/lib/Task.cc index 2db8ce5..338eaba 100644 --- a/lib/Task.cc +++ b/lib/Task.cc @@ -5,7 +5,7 @@ Task::Task() : state(TASK_ON_HOLD), suspended(false) {} Task::~Task() {} -int Task::Do() { +int Task::Do() throw (GeneralException) { return TASK_ON_HOLD; } @@ -43,18 +43,18 @@ void Task::Suspend() throw (GeneralException) { throw TaskSwitch(); } -void WaitFor(Handle * h) { +void Task::WaitFor(Handle * h) { w4ha.push_back(h); } -void WaitFor(Task * t) { +void Task::WaitFor(Task * t) { w4ta.push_back(t); } -void WaitFor(pid_t p) { +void Task::WaitFor(pid_t p) { w4pr.push_back(p); } -void WaitFor(struct timeval t) { +void Task::WaitFor(struct timeval t) { w4to.push_back(t); } -- cgit v1.2.3