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

Function threadExit

libctru/source/thread.c:123–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

121}
122
123void threadExit(int rc)
124{
125 Thread t = threadGetCurrent();
126 if (!t)
127 __panic();
128
129 t->finished = true;
130 if (t->detached)
131 threadFree(t);
132 else
133 t->rc = rc;
134
135 svcExitThread();
136}

Callers 2

_thread_beginFunction · 0.85
__SYSCALL(thread_exit)Function · 0.85

Calls 3

threadGetCurrentFunction · 0.85
__panicFunction · 0.85
threadFreeFunction · 0.85

Tested by

no test coverage detected