MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / lua_newthread

Function lua_newthread

other_src/lua/src/lapi.cpp:141–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

luaB_cocreateFunction · 0.70

Calls 1

luaE_newthreadFunction · 0.70

Tested by

no test coverage detected