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

Function host_background_start

src/daemon/host.c:864–876  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

862}
863
864static bool host_background_start(host_state_t *host) {
865 /* No watcher object when watcher_enabled=false (#335) — nothing to run, and
866 * the daemon must still come up with its remaining subsystems. */
867 if (host->watcher) {
868 if (cbm_thread_create(&host->watcher_thread, 0, host_watcher_thread, host->watcher) != 0) {
869 return false;
870 }
871 host->watcher_started = true;
872 }
873
874 host_http_reconcile_at(host, cbm_now_ms(), true);
875 return true;
876}
877
878static bool host_wait_for_lifetime(cbm_daemon_runtime_service_t *service,
879 atomic_int *stop_requested, host_state_t *host, bool permanent) {

Callers 1

cbm_daemon_host_runFunction · 0.85

Calls 3

cbm_thread_createFunction · 0.85
host_http_reconcile_atFunction · 0.85
cbm_now_msFunction · 0.85

Tested by

no test coverage detected