lua-users home
lua-l archive

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

Thank you Thijs,

it's unfortunately not only for debug purposes.

But I could bypass the problem by finding the main thread of the Lua state and hooking the stop function there. As it is the central 'player' in COPAS (every other thread yield()s back to it and it resume()s to the next thread), it will stumble upon the hook anyway.

Am 16.07.2014 11:40, schrieb Thijs Schreijer:
For debug purposes, monkey patch the coroutine table functions, to store all generated coroutines in a weak table in the registry. Thijs