|
OK, thanks, looked it up in the ref manual; lua_newthread. So L basically identifies ‘independent execution stacks’ So, as I understand it, I need to be able to identify the ‘master’ state to fix my issue, as my static c variables should be shared amongst all the child states, but only within one ‘master’ state. The L of the ‘master’ state should then be my unique identifier. So is there a way to get the ‘master’ L from an L representing a coroutine/childstate? Thijs From: lua-l-bounces@lists.lua.org [mailto:lua-l-bounces@lists.lua.org] On Behalf Of wesley.hoke@gmail.com The L pointer isn't necessarily related to the master Lua state. It can have a different value if a coroutine calls into your function. wes
|