summaryrefslogtreecommitdiff
path: root/lib/Task.cc
diff options
context:
space:
mode:
authorPixel <Pixel>2001-11-23 12:48:19 +0000
committerPixel <Pixel>2001-11-23 12:48:19 +0000
commit8b6b771ca421f4f08f58debbf5459b020cf1bef7 (patch)
treeb6b07ab038e1cde0d9067f44e728c2c21dd79f1c /lib/Task.cc
parent1311938cc52369b8631c29f83a9ecdf4a5f12f19 (diff)
Working on taskman...
Diffstat (limited to 'lib/Task.cc')
-rw-r--r--lib/Task.cc26
1 files changed, 3 insertions, 23 deletions
diff --git a/lib/Task.cc b/lib/Task.cc
index b54402f..4f36c7b 100644
--- a/lib/Task.cc
+++ b/lib/Task.cc
@@ -50,7 +50,7 @@ void Task::Suspend() throw (GeneralException) {
}
void Task::WaitFor(Handle * h, int flags) {
- w4ha.push_back(w4ha_t(h, flags));
+ TaskMan::WaitFor(h, this, flags);
}
void Task::WaitFor(Task * t) {
@@ -58,31 +58,11 @@ void Task::WaitFor(Task * t) {
}
void Task::WaitFor(pid_t p) {
- w4pr.push_back(w4pr_t(p));
+ TaskMan::WaitFor(p, this);
}
void Task::WaitFor(timeval t, int flags) {
- w4to.push_back(w4to_t(t, flags));
-}
-
-bool Task::WaitingFor(Handle * ha) {
- vector<w4ha_t>::iterator p;
-
- for (p = w4ha.begin(); p && (p != w4ha.end()); p++) {
- if (p->ha == ha) return true;
- }
-
- return false;
-}
-
-bool Task::WaitingFor(pid_t pr) {
- vector<w4pr_t>::iterator p;
-
- for (p = w4pr.begin(); p && (p != w4pr.end()); p++) {
- if (p->pr == pr) return true;
- }
-
- return false;
+ TaskMan::WaitFor(t, this, flags);
}
void Task::SetBurst() {