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);
while(processctl(app, PCTL_POLLSTATE, 0, 0, 0) != 4);
while(processctl(app, PCTL_POLLSTATE, 0, 0, 0) != 4) {
schedrelease();
}
cleanup:
for (size_t j = 0; j < argslen1; j++) {