lua-users home
lua-l archive

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


> but is it 'officially' safe to call lua_sethook() asynchronously (from
> another thread, when lua_lock/lua_unlock are not defined)?

That's certainly the intention, as the comment just before the definition
of lua_sethook says...
	http://www.lua.org/source/5.1/ldebug.c.html#lua_sethook

This has been discussed before:
	http://lua-users.org/lists/lua-l/2006-10/msg00275.html

That was a long thread and I don't recall the conclusion, if there was any...