MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / lua_newthread

Function lua_newthread

Source/Misc/lua/src/lua.c:1989–1999  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1987
1988
1989LUA_API lua_State *lua_newthread (lua_State *L) {
1990lua_State *L1;
1991lua_lock(L);
1992luaC_checkGC(L);
1993L1 = luaE_newthread(L);
1994setthvalue(L, L->top, L1);
1995api_incr_top(L);
1996lua_unlock(L);
1997luai_userstatethread(L, L1);
1998return L1;
1999}
2000
2001
2002

Callers 2

usb.cFile · 0.85
luaB_cocreateFunction · 0.85

Calls 1

luaE_newthreadFunction · 0.85

Tested by

no test coverage detected