From ea652a2019e4cbbbdd0ca5ebda5ee6edbc4e2d59 Mon Sep 17 00:00:00 2001 From: Pixel Date: Mon, 2 Apr 2012 07:25:31 -0700 Subject: We really need the new LuaTasks to be spawned on the same thread as the LuaMainTask. --- src/LuaTask.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/LuaTask.cc b/src/LuaTask.cc index 754de6f..d722847 100644 --- a/src/LuaTask.cc +++ b/src/LuaTask.cc @@ -17,9 +17,8 @@ void Balau::LuaMainTask::Do() { waitFor(&m_queueEvent); LuaExecCell * cell; - while ((cell = m_queue.pop(false))) { - createTask(new LuaTask(L.thread(), cell)); - } + while ((cell = m_queue.pop(false))) + createTask(new LuaTask(L.thread(), cell), this); yield(); } -- cgit v1.2.3