| 246 | } platform_path_thread_result_t; |
| 247 | |
| 248 | static void *platform_capture_path_buffers(void *opaque) { |
| 249 | platform_path_thread_result_t *result = opaque; |
| 250 | result->home = cbm_get_home_dir(); |
| 251 | result->cache = cbm_resolve_cache_dir(); |
| 252 | atomic_fetch_add_explicit(result->ready, 1, memory_order_release); |
| 253 | while (atomic_load_explicit(result->release, memory_order_acquire) == 0) { |
| 254 | cbm_usleep(1000); |
| 255 | } |
| 256 | return NULL; |
| 257 | } |
| 258 | |
| 259 | /* The daemon dispatches different sessions concurrently. Path helpers may |
| 260 | * retain their historical return-pointer API, but each live thread needs |
nothing calls this directly
no test coverage detected