| 1158 | } |
| 1159 | |
| 1160 | static bool runtime_worker_service_running(cbm_daemon_runtime_worker_t *worker) { |
| 1161 | cbm_daemon_runtime_service_t *service = worker->service; |
| 1162 | cbm_mutex_lock(&service->mutex); |
| 1163 | bool running = service->state == CBM_DAEMON_RUNTIME_SERVICE_RUNNING; |
| 1164 | cbm_mutex_unlock(&service->mutex); |
| 1165 | return running; |
| 1166 | } |
| 1167 | |
| 1168 | static bool runtime_worker_admit(cbm_daemon_runtime_worker_t *worker, |
| 1169 | cbm_daemon_client_id_t *client_id_out) { |
no test coverage detected