[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: lua_error
- From: Roberto Ierusalimschy <roberto@...>
- Date: Fri, 20 Feb 2004 10:45:43 -0300
> in lua_error(), if luaG_errormsg() longjmps via luaD_throw(), isn't the
> call to lua_unlock() deadcode ?
Yes.
> if so, would this cause any unbalanced lock/unlock issues ?
No. The longjmp goes to a place still inside Lua. When control finally
returns to the application (e.g., returning from a call to lua_pcall) it
must go through another lua_unlock.
-- Roberto