lua-users home
lua-l archive

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


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