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

Function main_project_lock_manager_close

src/main.c:1341–1357  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1339}
1340
1341static bool main_project_lock_manager_close(cbm_project_lock_manager_t **manager) {
1342 bool ok = true;
1343 uint64_t deadline = main_deadline_after(MAIN_COORDINATION_CLEANUP_MS);
1344 while (manager && *manager) {
1345 cbm_private_file_lock_status_t status = cbm_project_lock_manager_free(manager);
1346 if (status != CBM_PRIVATE_FILE_LOCK_OK) {
1347 ok = false;
1348 }
1349 if (*manager) {
1350 if (cbm_now_ms() >= deadline) {
1351 main_coordination_cleanup_fail_stop("project_lock_manager_cleanup");
1352 }
1353 cbm_usleep(1000);
1354 }
1355 }
1356 return ok;
1357}
1358
1359static bool main_local_transition_close(cbm_daemon_ipc_local_transition_t **transition) {
1360 uint64_t deadline = main_deadline_after(MAIN_COORDINATION_CLEANUP_MS);

Callers 1

mainFunction · 0.85

Calls 4

main_deadline_afterFunction · 0.85
cbm_now_msFunction · 0.85

Tested by

no test coverage detected