MCPcopy Create free account
hub / github.com/devkitPro/libctru / threadGetCurrent

Function threadGetCurrent

libctru/source/thread.c:115–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113}
114
115Thread threadGetCurrent(void)
116{
117 ThreadVars* tv = getThreadVars();
118 if (tv->magic != THREADVARS_MAGIC)
119 __panic();
120 return tv->thread_ptr;
121}
122
123void threadExit(int rc)
124{

Callers 2

threadExitFunction · 0.85
__SYSCALL(thread_self)Function · 0.85

Calls 2

getThreadVarsFunction · 0.85
__panicFunction · 0.85

Tested by

no test coverage detected