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

Function worker_tmp_lock

src/mcp/index_supervisor.c:595–599  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

593static atomic_flag g_worker_tmp_lock = ATOMIC_FLAG_INIT;
594
595static void worker_tmp_lock(void) {
596 while (atomic_flag_test_and_set_explicit(&g_worker_tmp_lock, memory_order_acquire)) {
597 cbm_usleep(1000);
598 }
599}
600
601static void worker_tmp_unlock(void) {
602 atomic_flag_clear_explicit(&g_worker_tmp_lock, memory_order_release);

Callers 1

worker_unique_fileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected