Fix atomic memory order for sync.ticket_mutex_unlock

This commit is contained in:
Feoramund
2024-09-09 16:19:15 -04:00
parent 45da009377
commit dbb783fbf2
+1 -1
View File
@@ -297,7 +297,7 @@ waiting to acquire the lock, exactly one of those threads is unblocked and
allowed into the critical section. allowed into the critical section.
*/ */
ticket_mutex_unlock :: #force_inline proc "contextless" (m: ^Ticket_Mutex) { ticket_mutex_unlock :: #force_inline proc "contextless" (m: ^Ticket_Mutex) {
atomic_add_explicit(&m.serving, 1, .Relaxed) atomic_add_explicit(&m.serving, 1, .Release)
} }
/* /*