diff options
author | Nicolas 'Pixel' Noble <pixel@nobis-crew.org> | 2013-01-18 09:15:34 -0800 |
---|---|---|
committer | Nicolas 'Pixel' Noble <pixel@nobis-crew.org> | 2013-01-18 09:15:34 -0800 |
commit | 8e6f94ffffcc992c24393be15d8f984a5c5eef6f (patch) | |
tree | a77e51cb4c62752a9b6f84270763f7e6f2e235b0 /includes | |
parent | 8c5bdc2344dbc6c1629e258b7965442046600584 (diff) |
Adding a sleep() paradigm to tasks.
Diffstat (limited to 'includes')
-rw-r--r-- | includes/Task.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/includes/Task.h b/includes/Task.h index 19e5262..cb69ca3 100644 --- a/includes/Task.h +++ b/includes/Task.h @@ -170,6 +170,7 @@ class Task { } virtual void Do() = 0; void waitFor(Events::BaseEvent * event); + void sleep(double timeout); bool setOkayToEAgain(bool enable) { if (m_stackless) { AAssert(enable, "You can't make a task go not-okay-to-eagain if it's stackless."); |