LUA_PUSHTHREAD(3) Library Functions Manual LUA_PUSHTHREAD(3)

lua_pushthreadpushes the thread onto the stack, function indicator [-0, +1, -]

#include <lua.h>

int
lua_pushthread(lua_State *L);

() pushes the thread represented by L onto the stack. Returns 1 if this thread is the main thread of its state.

Roberto Ierusalimschy, Luiz Henrique de Figueiredo, and Waldemar Celes, Lua 5.1 Reference Manual.

The lua_pushthread() manual page is based on Lua Reference Manual 5.1 and was created by Sergey Bronnikov.

July 18, 2022 Debian