Switch phased_executor to spinlock type instead of raw bool

This commit is contained in:
Zachary Levy
2026-04-02 18:51:52 -07:00
parent fd3cd1b6e6
commit 3fde4bebf9
2 changed files with 26 additions and 28 deletions

View File

@@ -124,6 +124,14 @@ spinlock_unlock :: #force_inline proc "contextless" (lock: ^Spinlock) {
intrinsics.atomic_store_explicit(lock, false, .Release)
}
try_lock :: proc {
spinlock_try_lock,
}
unlock :: proc {
spinlock_unlock,
}
// ---------------------------------------------------------------------------------------------------------------------
// ----- Tests ------------------------
// ---------------------------------------------------------------------------------------------------------------------