summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
Diffstat (limited to 'includes')
-rw-r--r--includes/Task.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/includes/Task.h b/includes/Task.h
index 03233f8..4617521 100644
--- a/includes/Task.h
+++ b/includes/Task.h
@@ -122,6 +122,7 @@ class Task {
IDLE,
STOPPED,
FAULTED,
+ YIELDED,
};
Task();
virtual ~Task();
@@ -136,7 +137,7 @@ class Task {
TaskMan * getTaskMan() { return m_taskMan; }
struct ev_loop * getLoop();
protected:
- void yield();
+ void yield(bool changeStatus = false);
virtual void Do() = 0;
void waitFor(Events::BaseEvent * event);
bool setOkayToEAgain(bool enable) {