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

Function cbm_work_note

src/foundation/mem_events.c:1331–1342  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1329}
1330
1331void cbm_work_note(cbm_work_kind_t kind, void *site, uint64_t bytes, uint64_t aux1, uint64_t aux2) {
1332 if ((int)kind < 0 || kind >= CBM_WORK_KIND_COUNT || !cbm_memev_enabled()) {
1333 return;
1334 }
1335 tl_state_t *st = tl_get();
1336 if (!st || st->busy) {
1337 return;
1338 }
1339 st->busy = true;
1340 work_add(st, kind, (uintptr_t)site, bytes, aux1, aux2, 0);
1341 st->busy = false;
1342}
1343
1344__attribute__((noinline)) void cbm_memev_da_note(size_t cap_bytes, size_t used_bytes,
1345 size_t cap_slots) {

Callers 9

note_ioFunction · 0.85
note_bytesFunction · 0.85
cbm_memev_mutex_lockFunction · 0.85
cbm_mutex_lockFunction · 0.85
cbm_memev_da_noteFunction · 0.85
cbm_ht_setFunction · 0.85
cbm_memev_containerFunction · 0.85
run_pthreads_countedFunction · 0.85
test_mem_events.cFile · 0.85

Calls 3

cbm_memev_enabledFunction · 0.85
tl_getFunction · 0.85
work_addFunction · 0.85

Tested by

no test coverage detected