summaryrefslogtreecommitdiff
path: root/include/Task.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/Task.h')
-rw-r--r--include/Task.h7
1 files changed, 5 insertions, 2 deletions
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_t> wbta;
+ Task * wbta;
};
#else