lua-users home
lua-l archive

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


It was thus said that the Great pocomane once stated:
> 
> I just want to fully stop the lua VM, to process some data outside lua, and
> then to restart the VM exactly where it did stop. To do this transparently
> with the proposed code, a lot of auxiliary code is required, e.g. to decide
> if perform a `nestresume` or a normal one, to handle errors, to wrap the
> standard coroutine functions, and so on.

  Perhaps I don't understand what's going on, but once Lua calls into C, the
Lua VM isn't running.  Are you perhaps looking for some form of preemptive
task switching for Lua coroutines?

  -spc