fix race condition in artifact cache

This commit is contained in:
Nikita Smith
2025-12-19 17:34:35 -08:00
parent 717781e0a3
commit 13ce0cf020
+1 -1
View File
@@ -18,8 +18,8 @@ ac_init(void)
ac_shared->req_batches[idx].mutex = mutex_alloc(); ac_shared->req_batches[idx].mutex = mutex_alloc();
ac_shared->req_batches[idx].arena = arena_alloc(); ac_shared->req_batches[idx].arena = arena_alloc();
} }
ac_shared->cancel_thread = thread_launch(ac_cancel_thread_entry_point, 0);
ac_shared->cancel_thread_semaphore = semaphore_alloc(0, 1, str8_zero()); ac_shared->cancel_thread_semaphore = semaphore_alloc(0, 1, str8_zero());
ac_shared->cancel_thread = thread_launch(ac_cancel_thread_entry_point, 0);
} }
//////////////////////////////// ////////////////////////////////