lua-users home
lua-l archive

Re: Can't interrupt tight loops in Lua 5.4 anymore?

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


> 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

AltStyle によって変換されたページ (->オリジナル) /