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

Function cbm_progress_sink_init

src/cli/progress_sink.c:180–189  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

178}
179
180void cbm_progress_sink_init(FILE *out) {
181 progress_sink_mutex_ensure();
182 cbm_mutex_lock(&s_sink_mutex);
183 s_out = out ? out : stderr;
184 atomic_store(&s_needs_newline, 0);
185 s_gbuf_nodes = NOT_SET;
186 s_gbuf_edges = NOT_SET;
187 cbm_log_set_sink(cbm_progress_sink_fn);
188 cbm_mutex_unlock(&s_sink_mutex);
189}
190
191void cbm_progress_sink_fini(void) {
192 progress_sink_mutex_ensure();

Callers 3

run_cliFunction · 0.85
test_cli.cFile · 0.85

Calls 4

cbm_mutex_lockFunction · 0.85
cbm_log_set_sinkFunction · 0.85
cbm_mutex_unlockFunction · 0.85

Tested by

no test coverage detected