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

Function platform_capture_path_buffers

tests/test_platform.c:321–330  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

319} platform_path_thread_result_t;
320
321static void *platform_capture_path_buffers(void *opaque) {
322 platform_path_thread_result_t *result = opaque;
323 result->home = cbm_get_home_dir();
324 result->cache = cbm_resolve_cache_dir();
325 atomic_fetch_add_explicit(result->ready, 1, memory_order_release);
326 while (atomic_load_explicit(result->release, memory_order_acquire) == 0) {
327 cbm_usleep(1000);
328 }
329 return NULL;
330}
331
332/* The daemon dispatches different sessions concurrently. Path helpers may
333 * retain their historical return-pointer API, but each live thread needs

Callers

nothing calls this directly

Calls 2

cbm_get_home_dirFunction · 0.85
cbm_resolve_cache_dirFunction · 0.85

Tested by

no test coverage detected