[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: RE: Is having lua_State per thread safe?
- From: "Tezduyar Lindskog, Umut" <Umut.TezduyarLindskog@...>
- Date: Tue, 22 May 2012 15:20:57 +0200
Erik, thank you for your answer.
Patrik, what I understand from "lua_State is fully thread safe" statement is more than one thread can work on the same lua_State simultaneously? Is this what you meant? If so, what are the synchronization primitives used by lua to support this feature?
From: email@example.com [mailto:firstname.lastname@example.org] On Behalf Of Patrick Rapin
Sent: Tuesday, May 22, 2012 10:57 AM
To: Lua mailing list
Subject: Re: Is having lua_State per thread safe?
> A lua_State is completly isolated, so they are thread safe. (Has been since
> Lua 4.0)
Until Lua 5.0, the parser was not completely reentrant.
So it is more correct to say that a lua_State is fully thread safe
since Lua 5.1.