[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Why are lua_lock() and all macros?
- From: Roberto Ierusalimschy <roberto@...>
- Date: Mon, 14 Apr 2003 10:02:56 -0300
> 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