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

Function store_scope_poll

src/store/store.c:1571–1576  ·  view source on GitHub ↗

This helper is also called from SQLite. It must not enter SQLite itself. */

Source from the content-addressed store, hash-verified

1569
1570/* This helper is also called from SQLite. It must not enter SQLite itself. */
1571static int store_scope_poll(cbm_store_read_scope_t *scope) {
1572 if (scope->status == CBM_STORE_OK && scope->cancel && scope->cancel(scope->context)) {
1573 scope->status = CBM_STORE_CANCELLED;
1574 }
1575 return scope->status;
1576}
1577
1578static int store_scope_progress(void *context) {
1579 return store_scope_poll((cbm_store_read_scope_t *)context) != CBM_STORE_OK;

Callers 3

store_scope_progressFunction · 0.85

Calls 1

cancelMethod · 0.80

Tested by

no test coverage detected