| 210 | } |
| 211 | |
| 212 | static void main_project_lock_release_fully(cbm_project_lock_lease_t **lease) { |
| 213 | uint64_t deadline = main_deadline_after(MAIN_COORDINATION_CLEANUP_MS); |
| 214 | while (lease && *lease) { |
| 215 | (void)cbm_project_lock_lease_release(lease); |
| 216 | if (!*lease) { |
| 217 | return; |
| 218 | } |
| 219 | if (cbm_now_ms() >= deadline) { |
| 220 | main_coordination_cleanup_fail_stop("project_lock_cleanup"); |
| 221 | } |
| 222 | cbm_usleep(1000); |
| 223 | } |
| 224 | } |
| 225 | |
| 226 | /* Test-only ownership proof consumed by the POSIX worker-lease contract tests. |
| 227 | * The environment variable is otherwise inert, and only a supervised physical |
no test coverage detected