Re: [ANN] luaffi (ffi library ala luajit's for the standard lua vm)
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: [ANN] luaffi (ffi library ala luajit's for the standard lua vm)
- From: Doug Currie <doug.currie@...>
- Date: 2011年7月18日 11:43:05 -0400
On Jul 18, 2011, at 9:01 AM, James McKaskill wrote:
> The problem crops up wrt to lua coroutines. Each coroutine has a
> seperate lua_State*. The callback is hard coded with the coroutine
> that was active at the time it was created. This is an issue if that
> thread is not ready (its resumed another thread, is currently yielded,
> or has been garbage collected).
This is a great reason to use LUA_RIDX_MAINTHREAD for callbacks in Lua 5.2
e