lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> Callbacks to suspended threads are OK with certain caveats; see:
> http://lua-users.org/lists/lua-l/2010-02/msg00447.html
> 
> In Lua 5.2 you can use LUA_RIDX_MAINTHREAD to get a handle on the main
> thread and use it for callbacks.

I think the most common workaround in 5.1 is to assume that the L used for
initially loading the module is the mainthread.