From ae4d1cfcbbe4c6130bd6370a03f546993a37f567 Mon Sep 17 00:00:00 2001 From: Pixel Date: Mon, 12 Nov 2001 22:20:50 +0000 Subject: Cleaning includes, progressing taskman... --- include/Task.h | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'include/Task.h') diff --git a/include/Task.h b/include/Task.h index 456f8f3..f728e62 100644 --- a/include/Task.h +++ b/include/Task.h @@ -2,7 +2,9 @@ #define __TASK_H__ #ifdef __cplusplus -#include "Exceptions.h" +#include +#include +#include #define TASK_ON_HOLD 0 #define TASK_DONE 1 @@ -14,14 +16,21 @@ class Task : public Base { virtual String GetName(); int Run(); int GetState(); - int Suspend() throw (GeneralException); - void Resume(int) throw (GeneralException); + void Suspend() throw (GeneralException); + bool WaitFor(Handle *); + bool WaitFor(Task *); + bool WaitFor(pid_t); + bool WaitFor(struct timeval); protected: virtual int Do(); private: int state; bool suspended; + vector w4ha; + vector w4ta; + vector w4pr; + vector w4to; }; #else -- cgit v1.2.3