MCPcopy Index your code
hub / github.com/assaultcube/AC / ismainthread

Function ismainthread

source/src/tools.cpp:872–872  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

870
871static SDL_threadID mainthreadid = SDL_ThreadID();
872bool ismainthread() { return mainthreadid == SDL_ThreadID(); }
873
874#else
875struct sl_threadinfo { int (*fn)(void *); void *data; pthread_t handle; int res; volatile char done; };

Callers 5

mlogFunction · 0.85
tlogFunction · 0.85
xlogFunction · 0.85
initdemoslotFunction · 0.85
disconnect_clientFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected