diff options
author | Pixel <Pixel> | 2001-11-13 11:50:37 +0000 |
---|---|---|
committer | Pixel <Pixel> | 2001-11-13 11:50:37 +0000 |
commit | 9235fbc2a736da2c68eb2dc0a3c1007b4a202d5e (patch) | |
tree | 4045976599c1738646e6debccefa90d00107a42e /include/Task.h | |
parent | 701e4e617e00e7f0ed4f07c1c4bcc20f6fb6ce4d (diff) |
Still working on task system.
Diffstat (limited to 'include/Task.h')
-rw-r--r-- | include/Task.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/include/Task.h b/include/Task.h index f728e62..675b2ed 100644 --- a/include/Task.h +++ b/include/Task.h @@ -5,6 +5,7 @@ #include <unistd.h> #include <vector.h> #include <Exceptions.h> +#include <Handle.h> #define TASK_ON_HOLD 0 #define TASK_DONE 1 @@ -17,12 +18,12 @@ class Task : public Base { int Run(); int GetState(); void Suspend() throw (GeneralException); - bool WaitFor(Handle *); - bool WaitFor(Task *); - bool WaitFor(pid_t); - bool WaitFor(struct timeval); + void WaitFor(Handle *); + void WaitFor(Task *); + void WaitFor(pid_t); + void WaitFor(struct timeval); protected: - virtual int Do(); + virtual int Do() throw (GeneralException); private: int state; |