Skip to content

Commit 0abd5c6

Browse files
authored
Merge pull request DeusData#1307 from DeusData/test/daemon-app-wait-yield
test(daemon-app): yield in the terminal-job wait like every sibling helper
2 parents b40a164 + 8268af4 commit 0abd5c6

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎tests/test_daemon_application.c‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1471,6 +1471,10 @@ static bool app_wait_for_terminal_job_with_subscribers(cbm_daemon_application_t
14711471
cbm_daemon_application_job_subscribers(application, project) >= minimum_subscribers) {
14721472
return true;
14731473
}
1474+
/* Yield like every sibling wait helper: a sleepless spin pins a core
1475+
* and can starve the daemon threads it polls on scarce-CPU runners
1476+
* (windows-11-arm release leg, run 30305464193). */
1477+
cbm_usleep(1000);
14741478
}
14751479
return false;
14761480
}

0 commit comments

Comments
 (0)