lua-users home
lua-l archive

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

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.