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

Function ipc_lock_contender

tests/test_daemon_ipc.c:2628–2634  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2626} ipc_lock_contender_t;
2627
2628static void *ipc_lock_contender(void *opaque) {
2629 ipc_lock_contender_t *contender = (ipc_lock_contender_t *)opaque;
2630 cbm_daemon_ipc_startup_lock_t *lock = NULL;
2631 contender->result = cbm_daemon_ipc_startup_lock_try_acquire(contender->endpoint, &lock);
2632 cbm_daemon_ipc_startup_lock_release(&lock);
2633 return NULL;
2634}
2635
2636TEST(daemon_ipc_startup_lock_has_one_winner) {
2637 static const char key[] = "5555666677778888";

Callers

nothing calls this directly

Tested by

no test coverage detected