diff options
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; |