lua-users home
lua-l archive

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

Furthermore, if I'm using a lua_State thread pool, can I re-assign the 'parent' state of an existing lua_State?

On Apr 2, 2007, at 2:24 AM, Graham Wakefield wrote:

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

grrr waaa