From 911858d8d7cab0108f1c14abd676ad37ccb9c95a Mon Sep 17 00:00:00 2001 From: "Nicolas \"Pixel\" Noble" Date: Mon, 5 Aug 2013 19:19:51 +0200 Subject: Adding a helper to LuaExecCell to find the LuaMainTask, and making the exec() call interruptible. --- includes/LuaTask.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'includes/LuaTask.h') diff --git a/includes/LuaTask.h b/includes/LuaTask.h index 2ed0156..a12f89f 100644 --- a/includes/LuaTask.h +++ b/includes/LuaTask.h @@ -16,6 +16,7 @@ class LuaExecCell { LuaExecCell(); virtual ~LuaExecCell() { if (m_exception) delete m_exception; } void detach() { m_detached = true; } + void exec(Lua & L); void exec(LuaMainTask * mainTask); bool gotError() { return m_gotError || m_exception; } void throwError() throw (GeneralException); @@ -27,6 +28,7 @@ class LuaExecCell { Events::Async m_event; bool m_detached = false; bool m_gotError = false; + bool m_running = false; GeneralException * m_exception = NULL; friend class LuaTask; -- cgit v1.2.3