MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / lua_pushthread

Function lua_pushthread

lib/lua/src/lapi.c:624–630  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

622
623
624LUA_API int lua_pushthread (lua_State *L) {
625 lua_lock(L);
626 setthvalue(L, s2v(L->top.p), L);
627 api_incr_top(L);
628 lua_unlock(L);
629 return (G(L)->mainthread == L);
630}
631
632
633

Callers 4

luaB_corunningFunction · 0.85
hookfFunction · 0.85
db_sethookFunction · 0.85
db_gethookFunction · 0.85

Calls 1

GFunction · 0.50

Tested by

no test coverage detected