From 37221dc091725c6fea09181b845308ab8f26c795 Mon Sep 17 00:00:00 2001 From: Pixel Date: Tue, 3 Apr 2012 08:46:21 -0700 Subject: Reworking a bit the way the queues are working, and thus, the way the LuaTMainTask queue works. --- includes/LuaTask.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'includes/LuaTask.h') diff --git a/includes/LuaTask.h b/includes/LuaTask.h index bdde9b7..ee9d7a7 100644 --- a/includes/LuaTask.h +++ b/includes/LuaTask.h @@ -53,16 +53,15 @@ class LuaTask : public Task { class LuaMainTask : public Task { public: LuaMainTask(); - ~LuaMainTask() { L.close(); } + ~LuaMainTask(); void stop(); virtual const char * getName() const { return "LuaMainTask"; } private: void exec(LuaExecCell * cell); virtual void Do(); Lua L; - Events::Async m_queueEvent; Queue m_queue; - bool m_stopping; + volatile bool m_stopping; friend class LuaExecCell; }; -- cgit v1.2.3