mm/src/libultra/os/getthreadid.c

9 lines
132 B
C

#include <osint.h>
OSId osGetThreadId(OSThread* t) {
if (t == NULL) {
t = __osRunningThread;
}
return t->id;
}