summaryrefslogtreecommitdiff
path: root/include/Task.h
diff options
context:
space:
mode:
authorPixel <Pixel>2001-11-25 23:50:14 +0000
committerPixel <Pixel>2001-11-25 23:50:14 +0000
commit9707409e4d15eadac9b3c752c3c6877788943a58 (patch)
tree58a8ef3851967415fd21674648f02c42e8eab4cd /include/Task.h
parent8b6b771ca421f4f08f58debbf5459b020cf1bef7 (diff)
Wow, everything almost work!!! Amazing!!!
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