[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: "Pre-empting" lua code
- From: John W <jwdevel@...>
- Date: Thu, 10 Mar 2022 11:03:54 -0800
On 3/10/22, Oliver <oschmidt-mailinglists@gmx.de> wrote:
>
> You may have a look at mtint ( https://github.com/osch/lua-mtint#mtint ),
> especially at Example 3 ( https://github.com/osch/lua-mtint#example-3 ).
>
> With mtint it is possible to interrupt a concurrently running Lua thread
> from another thread ...
As far as I can tell, fundamentally mtinit uses the "debug.sethook()"
approach to achieve this interruption — is that correct? It's not
doing some kind of platform-specific "raise an exception on thread X"
functionality or somesuch, right?
-John