lua-users home
lua-l archive

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

On 2/2/06, Luiz Henrique de Figueiredo <> wrote:
If each thread has its own separate Lua state, why do you need synchronization?
In your case, you don't need to define lua_lock and friends.
You only need synchronization if you're running *child* states in the threads.
Or am I missing something?

The threads talk to each other and to other C based threads and therefore need synchronization between them.

// Chris