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

Function store_progress_acquire

src/store/store.c:1524–1532  ·  view source on GitHub ↗

One exclusive native progress owner per connection. SQLite has no getter * for an externally installed handler; direct replacement during this borrow * is outside the request-owned connection contract. */

Source from the content-addressed store, hash-verified

1522 * for an externally installed handler; direct replacement during this borrow
1523 * is outside the request-owned connection contract. */
1524static bool store_progress_acquire(cbm_store_t *s, const void *owner, int interval,
1525 int (*callback)(void *), void *context) {
1526 if (!s || !s->db || !owner || s->progress_owner) {
1527 return false;
1528 }
1529 s->progress_owner = owner;
1530 sqlite3_progress_handler(s->db, interval, callback, context);
1531 return true;
1532}
1533
1534static bool store_progress_release(cbm_store_t *s, const void *owner) {
1535 if (!s || !s->db || s->progress_owner != owner) {

Callers 3

cbm_store_compare_graphsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected