lua-users home
lua-l archive

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


> why are lua_lock(), lua_unlock() and whatever macros?

Overhead. To call a funtion (or simply check its existence) in every
entry/exit to a Lua function is a waste for the majority of programs
that do not need it. (Support for OS threads is not an "official"
feature of Lua; it is more like a bonus.)

-- Roberto