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

Function main_local_command_cancel

src/main.c:153–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

151}
152
153static bool main_local_command_cancel(void *opaque) {
154 main_local_maintenance_context_t *context = opaque;
155 if (!context) {
156 return false;
157 }
158 cbm_mutex_lock(&context->mutex);
159 bool cancelled = context->server && cbm_mcp_server_cancel_active(context->server);
160 context->maintenance_cancelled = context->maintenance_cancelled || cancelled;
161 cbm_mutex_unlock(&context->mutex);
162 return cancelled;
163}
164
165static bool main_local_maintenance_was_cancelled(main_local_maintenance_context_t *context) {
166 if (!context) {

Callers

nothing calls this directly

Calls 3

cbm_mutex_lockFunction · 0.85
cbm_mutex_unlockFunction · 0.85

Tested by

no test coverage detected