diff options
| author | Feoramund <161657516+Feoramund@users.noreply.github.com> | 2024-09-08 18:59:55 -0400 |
|---|---|---|
| committer | Feoramund <161657516+Feoramund@users.noreply.github.com> | 2024-09-09 16:19:15 -0400 |
| commit | dbb783fbf20df1bba899b7a2bcbd65f71eb32fef (patch) | |
| tree | 5ede8b61d0d7799d0f7ae1abbc2a9c10440d5bb1 | |
| parent | 45da0093774276223e3724a89e5b0a9f8ef7c9f7 (diff) | |
Fix atomic memory order for `sync.ticket_mutex_unlock`
| -rw-r--r-- | core/sync/extended.odin | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/sync/extended.odin b/core/sync/extended.odin index ffba40ef8..fd2bda08a 100644 --- a/core/sync/extended.odin +++ b/core/sync/extended.odin @@ -297,7 +297,7 @@ waiting to acquire the lock, exactly one of those threads is unblocked and allowed into the critical section. */ ticket_mutex_unlock :: #force_inline proc "contextless" (m: ^Ticket_Mutex) { - atomic_add_explicit(&m.serving, 1, .Relaxed) + atomic_add_explicit(&m.serving, 1, .Release) } /* |