lua-users home
lua-l archive

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


On Wed, Mar 30, 2016 at 7:50 PM, Roberto Ierusalimschy <roberto@inf.puc-rio.br> wrote:

> The code did not change (except for the type of 'hookmask' that, as I mentioned, went from 'lu_byte' to 'l_signalT'). I simply added an explanation of why the code as it is should work.

Shouldn't we have a note to that effect in the reference manual, too?

Something like "breaking into executing Lua code can be achieved by calling lua_sethook from a signal handler or from another thread, which, unlike other Lua API calls, allows that without additional synchronization"?

Cheers,
V.