[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Random crashed with threaded application
- From: Javier Guerra Giraldez <javier@...>
- Date: Thu, 20 Jun 2013 15:28:26 -0500
On Thu, Jun 20, 2013 at 3:21 PM, David Demelier
> 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.