schedrelease() syscall for more efficient spinning
This commit is contained in:
@ -20,7 +20,9 @@ void tb_runinitscript(void) {
|
||||
|
||||
processctl(tb, PCTL_RUN, 0, 0, 0);
|
||||
|
||||
while(processctl(tb, PCTL_POLLSTATE, 0, 0, 0) != 4);
|
||||
while(processctl(tb, PCTL_POLLSTATE, 0, 0, 0) != 4) {
|
||||
schedrelease();
|
||||
}
|
||||
}
|
||||
|
||||
void main(void) {
|
||||
|
Reference in New Issue
Block a user