| 189 | } |
| 190 | |
| 191 | static void host_cleanup_release_until_complete(cbm_daemon_host_cleanup_release_for_test_fn release, |
| 192 | void *context, const char *component) { |
| 193 | if (!release) { |
| 194 | return; |
| 195 | } |
| 196 | uint64_t deadline = host_deadline_after(HOST_COORDINATION_CLEANUP_MS); |
| 197 | while (!release(context)) { |
| 198 | if (cbm_now_ms() >= deadline) { |
| 199 | host_cleanup_force_terminate(component); |
| 200 | } |
| 201 | cbm_usleep(1000); |
| 202 | } |
| 203 | } |
| 204 | |
| 205 | void cbm_daemon_host_cleanup_release_until_complete_for_test( |
| 206 | cbm_daemon_host_cleanup_release_for_test_fn release, void *context) { |
no test coverage detected