Re: lua_error
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: lua_error
- From: Roberto Ierusalimschy <roberto@...>
- Date: 2004年2月20日 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