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

Source from the content-addressed store, hash-verified

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