summaryrefslogtreecommitdiff
path: root/include/Task.h
diff options
context:
space:
mode:
authorPixel <Pixel>2001-11-12 16:11:04 +0000
committerPixel <Pixel>2001-11-12 16:11:04 +0000
commit709543dec3eaa07f7d2d7da2157d1f9159bad5d8 (patch)
treed18d30593f7b96ea3d2306bb6784d0a1a1a7a95e /include/Task.h
parent6718e4cfec88e3046030f60775293d6de03cdc07 (diff)
Taskman
Diffstat (limited to 'include/Task.h')
-rw-r--r--include/Task.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/Task.h b/include/Task.h
index f2fe722..4de3fa5 100644
--- a/include/Task.h
+++ b/include/Task.h
@@ -2,6 +2,7 @@
#define __TASK_H__
#ifdef __cplusplus
+#include <setjmp.h>
#include "Exceptions.h"
#define TASK_ON_HOLD 0
@@ -14,11 +15,15 @@ class Task : public Base {
virtual String GetName();
int Run();
int GetState();
+ int Suspend() throw (GeneralException);
+ void Resume(int) throw (GeneralException);
protected:
virtual int Do();
private:
+ jmp_buf env;
int state;
+ bool suspended;
};
#else