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:205–217  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

203}
204
205static void host_cleanup_release_until_complete(cbm_daemon_host_cleanup_release_for_test_fn release,
206 void *context, const char *component) {
207 if (!release) {
208 return;
209 }
210 uint64_t deadline = host_deadline_after(HOST_COORDINATION_CLEANUP_MS);
211 while (!release(context)) {
212 if (cbm_now_ms() >= deadline) {
213 host_cleanup_force_terminate(component);
214 }
215 cbm_usleep(1000);
216 }
217}
218
219void cbm_daemon_host_cleanup_release_until_complete_for_test(
220 cbm_daemon_host_cleanup_release_for_test_fn release, void *context) {

Calls 4

host_deadline_afterFunction · 0.85
cbm_now_msFunction · 0.85
releaseFunction · 0.50

Tested by

no test coverage detected