lua-users home
lua-l archive

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




On 6 May 2011 14:35, Roberto Ierusalimschy <roberto@inf.puc-rio.br> wrote:
> The function would seem to indicate that lua_lock when used
> should be something like the following operating on a mutex stored in
> global_State, is this correct?
> lock_mutex(G(L)->mutex)

Yes. The idea would be to control multiple C threads running multiple
Lua threads in the same global state. So, all Lua threads in a
global state must share the same lock.

-- Roberto


Thanks for the clarification Roberto.