summaryrefslogtreecommitdiff
path: root/includes/Task.h
diff options
context:
space:
mode:
authorPixel <pixel@nobis-crew.org>2012-04-08 16:33:53 -0700
committerPixel <pixel@nobis-crew.org>2012-04-08 16:33:53 -0700
commit1548da7eb85e8199e49c0a4e7e3c53fb2184177e (patch)
tree03ab0059404f3fd0b985853a166be1293b071ce9 /includes/Task.h
parent0fb5f42ca43f11bd37ddc89aa7c7b098d764b28c (diff)
Few more quirks into the stackless mode; we don't want to allocate stacks nor create any co-routine (or fiber) if we're stackless.
Diffstat (limited to 'includes/Task.h')
-rw-r--r--includes/Task.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/includes/Task.h b/includes/Task.h
index b5f5540..e9c2add 100644
--- a/includes/Task.h
+++ b/includes/Task.h
@@ -153,6 +153,7 @@ class Task {
static void yield(Events::BaseEvent * evt, bool interruptible = false) throw (GeneralException);
TaskMan * getTaskMan() const { return m_taskMan; }
struct ev_loop * getLoop();
+ bool isStackless() { return m_stackless; }
protected:
void yield(bool stillRunning = false) throw (GeneralException);
virtual void Do() = 0;