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

Function th_server_thread_start

tests/test_httpd.c:604–611  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

602}
603
604static int th_server_thread_start(cbm_thread_t *thread, cbm_http_server_t *server) {
605 if (!cbm_http_server_schedule_run(server))
606 return -1;
607 int rc = cbm_thread_create(thread, 0, th_server_thread, server);
608 if (rc != 0 && !cbm_http_server_cancel_scheduled_run(server))
609 return -1;
610 return rc;
611}
612
613static int th_server_start(th_server_t *ts) {
614 ts->srv = cbm_http_server_new(0);

Callers 5

th_server_startFunction · 0.85
test_httpd.cFile · 0.85
th_ui_index_probeFunction · 0.85

Calls 3

cbm_thread_createFunction · 0.85

Tested by

no test coverage detected