[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Checking whether a state is the top-level state
- From: Francisco Olarte <folarte@...>
- Date: Wed, 13 Sep 2017 16:32:25 +0200
On Wed, Sep 13, 2017 at 4:14 PM, Luiz Henrique de Figueiredo
> lua_pushthread does that:
> Pushes the thread represented by L onto the stack.
> Returns 1 if this thread is the main thread of its state.
I would think that can be used to detect if you have the main thread,
but not to locate it if you haven't got it.