blob: af9e15a2c1c0934d4830dd8621a92cc9f07aa18e (
plain)
1
2
3
4
5
6
7
8
9
|
#include "global.h"
void osYieldThread(void) {
register u32 prevInt = __osDisableInt();
__osRunningThread->state = OS_STATE_RUNNABLE;
__osEnqueueAndYield(&__osRunQueue);
__osRestoreInt(prevInt);
}
|