phased-executor (#4)

Co-authored-by: Zachary Levy <zachary@sunforge.is>
Reviewed-on: #4
This commit was merged in pull request #4.
This commit is contained in:
2026-04-03 01:53:23 +00:00
parent 25fca052f5
commit 59c600d630
5 changed files with 315 additions and 11 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 ------------------------
// ---------------------------------------------------------------------------------------------------------------------