lua-users home
lua-l archive

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


Is there a way with the API to find out how many uncollected threads there are in a lua_State?


I use this information as a debugging tool to see if I’m leaking threads.


I’ve managed to do this by keeping track of the thread creation/deletion in my own luai_user* functions, but I was hoping to avoid this customization of the Lua source.


I maintain a separate thread-count for each state, but it would also be nice to query the child thread-count for any thread in the hierarchy! It would be even nicer to enumerate the child threads of any thread…