[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: lua_close() locks but never unlocks... ?
- From: Ben Sunshine-Hill <sneftel@...>
- Date: Thu, 2 Feb 2006 17:11:53 -0800
On 2/2/06, Chris <firstname.lastname@example.org> 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
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.