|
|
||
|
- Is LuaThreads a separate package or is it the coroutines facility within standard
Lua for doing non-pre-emptive threading in a Lua script? Does it sit on top
of Posix threads (saw references to LuaThreads on top of eCos threads
elsewhere)?
- I can see a lua_newthread() API that can be called from C - is this an alternative to creating my own Posix thread and then lua_open()'ing a new Lua VM within that thread (which was what I was trying to do now)?
- lua_set/gettable(L, LUA_GLOBALSINDEX) vs. lua_set/getglobal(L, "global_id")
as a way of setting/getting globals in a Lua VM. Are these equivalent or
have I confused two concepts?
Equivalent. The _global versions save you an additional push call.
- Also, lua_pcall vs. lua_cpcall. lua_cpcall seems to be the preferred method
for invoking a Lua script and not having the calling program terminate if an
error occurs since the C function passed to lua_cpcall will return to the
function calling lua_cpcall in the event of an error?
-- Wim