MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / is_main_thread

Function is_main_thread

extlibs/sol3/include/sol/sol.hpp:10041–10045  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10039 }
10040
10041 inline bool is_main_thread(lua_State* L) {
10042 int ismainthread = lua_pushthread(L);
10043 lua_pop(L, 1);
10044 return ismainthread == 1;
10045 }
10046
10047 inline void coroutine_create_guard(lua_State* L) {
10048 if (is_main_thread(L)) {

Callers 2

coroutine_create_guardFunction · 0.85
is_main_threadMethod · 0.85

Calls 1

lua_pushthreadFunction · 0.85

Tested by

no test coverage detected