diff options
author | Pixel <pixel@nobis-crew.org> | 2012-04-08 18:28:32 -0700 |
---|---|---|
committer | Pixel <pixel@nobis-crew.org> | 2012-04-08 18:28:32 -0700 |
commit | d6f9bd366abf348fa562614c47050668139042f0 (patch) | |
tree | 6bcff68678fb57c43fa2df62520664c5cc75152a /includes | |
parent | 698a6d98780a727c4002dcb16d5ed98e167b6d09 (diff) |
Ability to create timeouts without a value; need to set them later tho.
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 159e68d..27ba4b1 100644 --- a/includes/Task.h +++ b/includes/Task.h @@ -67,6 +67,7 @@ class BaseEvent { class Timeout : public BaseEvent { public: + Timeout() { } Timeout(ev_tstamp tstamp) { set(tstamp); } virtual ~Timeout() { m_evt.stop(); } void evt_cb(ev::timer & w, int revents) { doSignal(); } |