1
0
mirror of https://github.com/zeldaret/oot.git synced 2024-09-23 05:45:03 +00:00
oot/src/libultra_boot_O1/osYieldThread.c
2020-03-22 22:20:03 +01:00

11 lines
224 B
C

#include <global.h>
void osYieldThread() {
register u32 prevInt;
prevInt = __osDisableInt();
__osRunningThread->state = OS_STATE_RUNNABLE;
__osEnqueueAndYield(&__osRunQueue);
__osRestoreInt(prevInt);
}