diff options
author | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2013-08-05 19:19:51 +0200 |
---|---|---|
committer | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2013-08-05 19:19:51 +0200 |
commit | 911858d8d7cab0108f1c14abd676ad37ccb9c95a (patch) | |
tree | 9a28cadbcf7a2fd133cfcba32ebce5864f680938 /includes | |
parent | e6e2b7afcc92cf0baecd83188e859af7a510da09 (diff) |
Adding a helper to LuaExecCell to find the LuaMainTask, and making the exec() call interruptible.
Diffstat (limited to 'includes')
-rw-r--r-- | includes/LuaTask.h | 2 |
1 files changed, 2 insertions, 0 deletions
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; |