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:
>  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.

I think perhaps you are not implementing lua_lock() and lua_unlock()
correctly. The lua_state is always passed as a parameter into these
functions, so that locks do NOT have to be shared between different
universes.

Ben