[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: RE: Lua State and callbacks from C
- From: "Thijs Schreijer" <thijs@...>
- Date: Tue, 9 Oct 2012 22:53:09 +0200
> 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.