summaryrefslogtreecommitdiff
path: root/includes/Task.h
diff options
context:
space:
mode:
authorPixel <pixel@nobis-crew.org>2011-10-17 21:02:52 -0700
committerPixel <pixel@nobis-crew.org>2011-10-17 21:02:52 -0700
commit10d0f503fb68946c265bad18dd755fdc816075c1 (patch)
tree3c6b02f2f7e27abd42adf580c1b3ecc97386613a /includes/Task.h
parent6bd1e79d98f95115c356a9e3e7fdb02dcf221a4e (diff)
Adding an early version of the 'engine debug' facility.
Diffstat (limited to 'includes/Task.h')
-rw-r--r--includes/Task.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/includes/Task.h b/includes/Task.h
index 3d99d26..691d47f 100644
--- a/includes/Task.h
+++ b/includes/Task.h
@@ -3,8 +3,9 @@
#include <stdlib.h>
#include <coro.h>
#include <ev++.h>
-#include <Exceptions.h>
#include <vector>
+#include <Exceptions.h>
+#include <Printer.h>
namespace Balau {
@@ -31,7 +32,7 @@ class Callback {
class BaseEvent {
public:
- BaseEvent() : m_cb(NULL), m_signal(false), m_task(NULL) { }
+ BaseEvent() : m_cb(NULL), m_signal(false), m_task(NULL) { Printer::elog(E_TASK, "Creating event at %p", this); }
virtual ~BaseEvent() { if (m_cb) delete m_cb; }
bool gotSignal() { return m_signal; }
void doSignal();