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

Function th_server_start

tests/test_httpd.c:411–420  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

409}
410
411static int th_server_start(th_server_t *ts) {
412 ts->srv = cbm_http_server_new(0);
413 if (!ts->srv)
414 return -1;
415 if (cbm_thread_create(&ts->tid, 0, th_server_thread, ts->srv) != 0) {
416 cbm_http_server_free(ts->srv);
417 return -1;
418 }
419 return 0;
420}
421
422static int th_server_start_with_watcher(th_server_t *ts, cbm_watcher_t *watcher) {
423 ts->srv = cbm_http_server_new(0);

Callers 1

test_httpd.cFile · 0.85

Calls 3

cbm_http_server_newFunction · 0.85
cbm_thread_createFunction · 0.85
cbm_http_server_freeFunction · 0.85

Tested by

no test coverage detected