lua-users home
lua-l archive

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


On 2/2/06, Chris <coderight@gmail.com> wrote:
>  The problem is that if you spawn two threads, each running Lua universes,
> and then one ends and closes, the other will freeze because the lock is not
> released.

This will not happen if you have implemented lua_lock and lua_unlock
correctly. If you do it correctly, the mutex corresponding to the
first universe will remain locked, but the mutex corresponding to the
second universe will remain unlocked.

Ben