1 2 3 4 5 6 7 8 9
#include "ultra64.h" OSPri osGetThreadPri(OSThread* thread) { if (thread == NULL) { thread = __osRunningThread; } return thread->priority; }