[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: lua_lock and lua_unlock implementation
- From: Roberto Ierusalimschy <roberto@...>
- Date: Fri, 6 May 2011 10:35:56 -0300
> 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