| 1075 | } |
| 1076 | |
| 1077 | static void runtime_service_begin_stopping(cbm_daemon_runtime_service_t *service, |
| 1078 | uint32_t timeout_ms, bool emergency, |
| 1079 | const char *reason) { |
| 1080 | uint64_t deadline = runtime_deadline_after(timeout_ms); |
| 1081 | cbm_mutex_lock(&service->mutex); |
| 1082 | runtime_service_begin_stopping_locked(service, deadline, emergency, reason); |
| 1083 | cbm_mutex_unlock(&service->mutex); |
| 1084 | } |
| 1085 | |
| 1086 | static void runtime_service_interrupt_connections_except(cbm_daemon_runtime_service_t *service, |
| 1087 | cbm_daemon_runtime_worker_t *except_worker, |
no test coverage detected