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

Function host_cleanup_release_until_complete

src/daemon/host.c:191–203  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

189}
190
191static 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
205void cbm_daemon_host_cleanup_release_until_complete_for_test(
206 cbm_daemon_host_cleanup_release_for_test_fn release, void *context) {

Calls 3

host_deadline_afterFunction · 0.85
cbm_now_msFunction · 0.85

Tested by

no test coverage detected