[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: lua_newstate
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Fri, 22 Dec 2017 16:52:11 -0200
> "Creates a new thread running in a new, independent state...."
> What does "thread" mean here? A pthread, for example?
"The type thread represents independent threads of execution and
it is used to implement coroutines (see §2.6). Lua threads are
not related to operating-system threads. Lua supports coroutines
on all systems, even those that do not support threads natively."