diff options
Diffstat (limited to 'include/Task.h')
-rw-r--r-- | include/Task.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/include/Task.h b/include/Task.h index 1842314..503e0df 100644 --- a/include/Task.h +++ b/include/Task.h @@ -10,6 +10,7 @@ #define TASK_ON_HOLD 0 #define TASK_DONE 1 +#define TASK_BURST 2 class Task : public Base { public: @@ -23,13 +24,20 @@ class Task : public Base { void WaitFor(Task *); void WaitFor(pid_t); void WaitFor(struct timeval); + void SetBurst(); + void SetCleanUp(); + bool HasToClean(); + void Stop(); + void Restart(); + bool IsStopped(); protected: virtual int Do() throw (GeneralException); - int current; private: int state; + bool stopped; + bool cleanup; bool suspended; vector<Handle *> w4ha; vector<Task *> w4ta; |