[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Deep resume and yield for nested coroutine
- From: Sean Conner <sean@...>
- Date: Tue, 14 May 2019 11:41:21 -0400
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