tb Spin efficiently with new schedrelease() syscall

This commit is contained in:
2025-09-19 23:41:24 +02:00
parent 1b5701a659
commit b7ad1e0633
2 changed files with 5 additions and 1 deletions

View File

@ -239,7 +239,9 @@ bool interp_runstring(const char *string, InterpResult **res, bool logcmds) {
processctl(app, PCTL_RUN, 0, 0, 0); processctl(app, PCTL_RUN, 0, 0, 0);
while(processctl(app, PCTL_POLLSTATE, 0, 0, 0) != 4); while(processctl(app, PCTL_POLLSTATE, 0, 0, 0) != 4) {
schedrelease();
}
cleanup: cleanup:
for (size_t j = 0; j < argslen1; j++) { for (size_t j = 0; j < argslen1; j++) {

View File

@ -124,6 +124,8 @@ void do_mode_interactive(void) {
uprintf(ANSIQ_SCR_CLR_ALL); uprintf(ANSIQ_SCR_CLR_ALL);
goto begin; goto begin;
break; break;
} else {
schedrelease();
} }
if (b == '\n') { if (b == '\n') {