[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: sharing one lua_State between threads ?
- From: Stefan Sandberg <keffo.sandberg@...>
- Date: Tue, 03 Jul 2007 11:28:41 +0200
Those macros makes sure the state internals are safe, it doesn't mean
you can share a state without care.
It basically locks the state for each vm op, but the language on it's
own doesn't have any constructs for thread safety, deadlocks are pretty
much guaranteed to happen.
gary ng wrote:
Is it a must to have lua_lock/unlock properly defined
if I have to share a single lua_State among threads ?
Park yourself in front of a world of choices in alternative vehicles. Visit the Yahoo! Auto Green Center.