lua-users home
lua-l archive

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



On Sep 2, 2013, at 9:49 PM, Hao Wu <wuhao.wise@gmail.com> wrote:


I see. I thought you needed to wrap every lua_State including the coroutines. 
 

Well it kinda does in that even with a coroutine Lua_State, lua_getallocf() gets the same ud pointer every time. In our model we treat the totality of all coroutines as equal, we don't need to track individual coroutine states, since the entire Lua VM is opaque to us (by design).

--Tim