lua-users home
lua-l archive

Re: Random crashed with threaded application

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


On Thu, Jun 20, 2013 at 3:21 PM, David Demelier
<demelier.david@gmail.com> wrote:
> I use the same Lua state for different threads but each of the
> lua_pcall is protected by mutexes. Is this enough?
not only lua_pcall(), but every Lua API call to the same state.
you should read/modify/execute a single Lua State concurrently from two threads.
--
Javier

AltStyle によって変換されたページ (->オリジナル) /