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

Function runtime_find_free_worker_locked

src/daemon/runtime.c:1962–1970  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1960}
1961
1962static cbm_daemon_runtime_worker_t *runtime_find_free_worker_locked(
1963 cbm_daemon_runtime_service_t *service) {
1964 for (size_t i = 0; i < service->worker_capacity; i++) {
1965 if (!service->workers[i].in_use) {
1966 return &service->workers[i];
1967 }
1968 }
1969 return NULL;
1970}
1971
1972static void runtime_reject_inline(cbm_daemon_ipc_connection_t *connection, const char *message) {
1973 cbm_daemon_runtime_connect_result_t result;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected