[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: lua_close() locks but never unlocks... ?
- From: Chris <coderight@...>
- Date: Thu, 2 Feb 2006 19:56:24 -0500
On 2/2/06, Mark Hamburg <mhamburg@adobe.com> wrote:
lua_lock/lua_unlock is for use when you have multiple threads accessing a
single universe. In that case, you generally wouldn't be calling lua_close
since that signals that all work with that universe is done.
Why would you not call close? One universe can be finished while
others are not. The problem is not the close itself, but the fact
that it is sharing a locking mechanism with other threads. If it
locks that mechanism and then shuts down (because we are done with that
universe) but never unlocks then that's unfriendly to the other
universes that are still running.
--
// Chris