Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
115
Thread threadGetCurrent(void)
116
{
117
ThreadVars* tv = getThreadVars();
118
if (tv->magic != THREADVARS_MAGIC)
119
__panic();
120
return tv->thread_ptr;
121
}
122
123
void threadExit(int rc)
124
{
Callers
2
threadExit
Function · 0.85
__SYSCALL(thread_self)
Function · 0.85
Calls
2
getThreadVars
Function · 0.85
__panic
Function · 0.85
Tested by
no test coverage detected