lua-users home
lua-l archive

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


On Sun, Jun 7, 2015 at 12:25 AM, Brigham Toskin <brighamtoskin@gmail.com> wrote:
> On Sat, Jun 6, 2015 at 1:21 PM, Nagaev Boris <bnagaev@gmail.com> wrote:
>>
>> You can use N Lua states in N threads (1 thread = 1 Lua state), but
>> you could not use 1 Lua state in N threads.
>
>
> Do you know if this applies to the "daughter states" created by coroutine
> threads? Is something like this e.g. what Lanes does?
>
> --
> Brigham Toskin

"Daughter state" is a part of original Lua state, so all limitations
apply: you can't use them in multiple OS threads at the same moment.


-- 


Best regards,
Boris Nagaev