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

Function runtime_service_begin_stopping

src/daemon/runtime.c:1085–1092  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1083}
1084
1085static void runtime_service_begin_stopping(cbm_daemon_runtime_service_t *service,
1086 uint32_t timeout_ms, bool emergency,
1087 const char *reason) {
1088 uint64_t deadline = runtime_deadline_after(timeout_ms);
1089 cbm_mutex_lock(&service->mutex);
1090 runtime_service_begin_stopping_locked(service, deadline, emergency, reason);
1091 cbm_mutex_unlock(&service->mutex);
1092}
1093
1094static void runtime_service_interrupt_connections_except(cbm_daemon_runtime_service_t *service,
1095 cbm_daemon_runtime_worker_t *except_worker,

Callers 2

Calls 4

runtime_deadline_afterFunction · 0.85
cbm_mutex_lockFunction · 0.85
cbm_mutex_unlockFunction · 0.85

Tested by

no test coverage detected