MCPcopy Create free account
hub / github.com/F-Stack/f-stack / lua_newthread

Function lua_newthread

app/redis-6.2.6/deps/lua/src/lapi.c:140–150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

138
139
140LUA_API lua_State *lua_newthread (lua_State *L) {
141 lua_State *L1;
142 lua_lock(L);
143 luaC_checkGC(L);
144 L1 = luaE_newthread(L);
145 setthvalue(L, L->top, L1);
146 api_incr_top(L);
147 lua_unlock(L);
148 luai_userstatethread(L, L1);
149 return L1;
150}
151
152
153

Callers 1

luaB_cocreateFunction · 0.70

Calls 1

luaE_newthreadFunction · 0.85

Tested by

no test coverage detected