MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / main_project_lock_release_fully

Function main_project_lock_release_fully

src/main.c:249–261  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

247}
248
249static void main_project_lock_release_fully(cbm_project_lock_lease_t **lease) {
250 uint64_t deadline = main_deadline_after(MAIN_COORDINATION_CLEANUP_MS);
251 while (lease && *lease) {
252 (void)cbm_project_lock_lease_release(lease);
253 if (!*lease) {
254 return;
255 }
256 if (cbm_now_ms() >= deadline) {
257 main_coordination_cleanup_fail_stop("project_lock_cleanup");
258 }
259 cbm_usleep(1000);
260 }
261}
262
263/* Test-only ownership proof consumed by the POSIX worker-lease contract tests.
264 * The environment variable is otherwise inert, and only a supervised physical

Calls 4

main_deadline_afterFunction · 0.85
cbm_now_msFunction · 0.85

Tested by

no test coverage detected