summaryrefslogtreecommitdiff
path: root/src/LuaTask.cc
diff options
context:
space:
mode:
authorNicolas Noble <pixel@nobis-crew.org>2013-08-02 15:53:08 -0700
committerNicolas Noble <pixel@nobis-crew.org>2013-08-02 15:53:08 -0700
commit903974e7b3ceecb977449ac5ea34808de9501997 (patch)
tree1c61d4574712a95a106c8647084a95b91d529a5b /src/LuaTask.cc
parentf416d651f3d6551aa0efbcdb8b5838269de9bff3 (diff)
Heavily revamped the C-to-Lua yielding mechanism. Now more generic.
Diffstat (limited to 'src/LuaTask.cc')
-rw-r--r--src/LuaTask.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/LuaTask.cc b/src/LuaTask.cc
index fa94621..5c03521 100644
--- a/src/LuaTask.cc
+++ b/src/LuaTask.cc
@@ -65,7 +65,7 @@ void Balau::LuaTask::Do() {
while(true) {
try {
if (L.yielded())
- LuaHelpersBase::resume(L);
+ L.resume();
else
m_cell->run(L);
}
@@ -76,9 +76,6 @@ void Balau::LuaTask::Do() {
m_cell->setError();
}
if (L.yielded()) {
- Events::BaseEvent * evt = LuaHelpersBase::getEvent(L);
- IAssert(evt, "We need an event for now here.");
- waitFor(evt);
yield();
continue;
}