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:
Hi,

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.
http://autos.yahoo.com/green_center/