From 9707409e4d15eadac9b3c752c3c6877788943a58 Mon Sep 17 00:00:00 2001 From: Pixel Date: Sun, 25 Nov 2001 23:50:14 +0000 Subject: Wow, everything almost work!!! Amazing!!! --- include/Task.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'include/Task.h') diff --git a/include/Task.h b/include/Task.h index cdc51c0..f80258d 100644 --- a/include/Task.h +++ b/include/Task.h @@ -13,6 +13,8 @@ #define TASK_BURST 2 #define W4_STICKY 1 +#define W4_READING 2 +#define W4_WRITING 4 class Task : public Base { public: @@ -21,11 +23,12 @@ class Task : public Base { virtual String GetName(); int Run(); int GetState(); - void Suspend() throw (GeneralException); + void Suspend(int = -1) throw (GeneralException); void WaitFor(Task *); void WaitFor(Handle *, int = 0); void WaitFor(pid_t); void WaitFor(timeval, int = 0); + Task * WaitedBy(); void SetBurst(); void SetCleanUp(); bool HasToClean(); @@ -48,7 +51,7 @@ class Task : public Base { bool stopped; bool cleanup; bool suspended; - vector wbta; + Task * wbta; }; #else -- cgit v1.2.3