2020-03-17 00:31:30 -04:00
|
|
|
#include <global.h>
|
|
|
|
|
2020-03-22 22:19:43 +01:00
|
|
|
void osYieldThread() {
|
2020-03-17 00:31:30 -04:00
|
|
|
register u32 prevInt;
|
|
|
|
|
|
|
|
prevInt = __osDisableInt();
|
|
|
|
__osRunningThread->state = OS_STATE_RUNNABLE;
|
|
|
|
__osEnqueueAndYield(&__osRunQueue);
|
|
|
|
__osRestoreInt(prevInt);
|
|
|
|
}
|