| 1429 | } |
| 1430 | |
| 1431 | static bool runtime_worker_service_running(cbm_daemon_runtime_worker_t *worker) { |
| 1432 | cbm_daemon_runtime_service_t *service = worker->service; |
| 1433 | cbm_mutex_lock(&service->mutex); |
| 1434 | bool running = service->state == CBM_DAEMON_RUNTIME_SERVICE_RUNNING; |
| 1435 | cbm_mutex_unlock(&service->mutex); |
| 1436 | return running; |
| 1437 | } |
| 1438 | |
| 1439 | static bool runtime_worker_admit(cbm_daemon_runtime_worker_t *worker, |
| 1440 | cbm_daemon_client_id_t *client_id_out) { |
no test coverage detected