lua-users home
lua-l archive

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


> 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