Re: Can't interrupt tight loops in Lua 5.4 anymore?
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Can't interrupt tight loops in Lua 5.4 anymore?
- From: Roberto Ierusalimschy <roberto@...>
- Date: 2020年5月18日 16:43:29 -0300
> A question: should the 'trap' field in struct CallInfo not be declared
> 'volatile' as it is being set from a signal handler?
> The 'hook' value in lua_State is declared volatile.
Yes. Variables declared with type sig_atomic_t should be volatile,
in general.
-- Roberto