From 1548da7eb85e8199e49c0a4e7e3c53fb2184177e Mon Sep 17 00:00:00 2001 From: Pixel Date: Sun, 8 Apr 2012 16:33:53 -0700 Subject: 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. --- includes/Task.h | 1 + 1 file changed, 1 insertion(+) (limited to 'includes') 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; -- cgit v1.2.3