Re: Thread safety in Lua
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Thread safety in Lua
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Sun, 3 Jul 2011 21:19:19 -0300
> Where I can read about Lua's thread safety?
Lua states, created with lua_newstate or luaL_newstate are completely
separate and thread safe.
Lua threads, created with lua_newthread, are not thread safe because
they share data structures with their parent states. Do not confuse
Lua threads with OS threads.