lua-users home
lua-l archive

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

Hi all,

I would like to implement a 'thread pool' of Lua states (allocated with lua_newthread); what do I need to do to an existing lua State to clean it up before returning it to the pool?

I figured at least lua_settop(L, 0), but what googling I have done also mentions that I should be careful about exceptions/errors in a state; but no more information could be found.  What do I need to do?

grrr waaa