From cd5da6097812baf125c2dc4f1d12e1a3f4985464 Mon Sep 17 00:00:00 2001 From: Nicolas Noble Date: Mon, 5 Aug 2013 11:53:57 -0700 Subject: Greatly simplifying the LuaYield mechanism so to avoid double-recursive calls in resume(). --- includes/Task.h | 3 --- 1 file changed, 3 deletions(-) (limited to 'includes/Task.h') diff --git a/includes/Task.h b/includes/Task.h index 940afe3..a8702b4 100644 --- a/includes/Task.h +++ b/includes/Task.h @@ -287,7 +287,6 @@ class Future { friend class Lua; func_t m_func; Events::BaseEvent * m_evt = NULL; - bool m_ranOnce = false; }; template @@ -298,7 +297,6 @@ R Future::get() { Task::operationYield(m_evt, Task::INTERRUPTIBLE); m_evt = NULL; try { - m_ranOnce = true; r = m_func(); return r; } @@ -316,7 +314,6 @@ void Future::run() { Task::operationYield(m_evt, Task::INTERRUPTIBLE); m_evt = NULL; try { - m_ranOnce = true; m_func(); return; } -- cgit v1.2.3