oot/src/libultra_boot_O1/osGetThreadId.c

10 lines
154 B
C

#include "global.h"
OSId osGetThreadId(OSThread* thread) {
if (thread == NULL) {
thread = __osRunningThread;
}
return thread->id;
}