test(daemon-app): yield in the terminal-job wait like every sibling helper

app_wait_for_terminal_job_with_subscribers was the only app_wait_for_*
helper polling without cbm_usleep(1000): a sleepless spin pins a core for
up to 10s and can starve the daemon threads it is polling on scarce-CPU
runners. Release run 30305464193 hit exactly this on windows-11-arm
(test_daemon_application.c:2671 ASSERT(terminal_with_prior_subscribers));
the suite passes 47/47 locally with the yield in place.

Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>
This commit is contained in:
Martin Vogel committed 2026-07-28 00:01:12 +02:00
1 parent b40a1642de
commit 8268af4188
1 file changed
+4
+4
View File
@@ -1471,6 +1471,10 @@ static bool app_wait_for_terminal_job_with_subscribers(cbm_daemon_application_t
cbm_daemon_application_job_subscribers(application, project) >= minimum_subscribers) {
return true;
}
/* Yield like every sibling wait helper: a sleepless spin pins a core
* and can starve the daemon threads it polls on scarce-CPU runners
* (windows-11-arm release leg, run 30305464193). */
cbm_usleep(1000);
}
return false;
}