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

Function main_local_command_cancel

src/main.c:199–209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

197}
198
199static bool main_local_command_cancel(void *opaque) {
200 main_local_maintenance_context_t *context = opaque;
201 if (!context) {
202 return false;
203 }
204 cbm_mutex_lock(&context->mutex);
205 bool cancelled = context->server && cbm_mcp_server_cancel_active(context->server);
206 context->maintenance_cancelled = context->maintenance_cancelled || cancelled;
207 cbm_mutex_unlock(&context->mutex);
208 return cancelled;
209}
210
211static bool main_local_maintenance_was_cancelled(main_local_maintenance_context_t *context) {
212 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