summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPixel <pixel@nobis-crew.org>2012-04-02 07:25:31 -0700
committerPixel <pixel@nobis-crew.org>2012-04-02 07:25:31 -0700
commitea652a2019e4cbbbdd0ca5ebda5ee6edbc4e2d59 (patch)
treed60797ff751f55b4f6d7150a70b5004447d0f6c2
parenta4634497c8ada51755249606d8dc4b4c2761c017 (diff)
We really need the new LuaTasks to be spawned on the same thread as the LuaMainTask.
-rw-r--r--src/LuaTask.cc5
1 files 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();
}