lua-users home
lua-l archive

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


> 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