| author | |
| committer | |
| log | d70bd0b37eafb82e3020f163ebcbaa2c13791e75 |
| tree | 02c251fc7489bb76493b7fac53fc08adf5f0e93c |
| parent | 2370dc886cf4bc919d912ea3c0a564f71675fd2e |
| signature |
* same reason as 048e38624e1b7c1ad140e253f1e5e7c8686580891 files changed, 1 insertions(+), 1 deletions(-)
lib/std/atomic.zig+1-1| ... | @@ -509,7 +509,7 @@ pub const Mutex = enum(u8) { | ... | @@ -509,7 +509,7 @@ pub const Mutex = enum(u8) { |
| 509 | locked, | 509 | locked, |
| 510 | 510 | ||
| 511 | pub fn tryLock(m: *Mutex) bool { | 511 | pub fn tryLock(m: *Mutex) bool { |
| 512 | return @cmpxchgWeak(Mutex, m, .unlocked, .locked, .acquire, .monotonic) == null; | 512 | return @cmpxchgStrong(Mutex, m, .unlocked, .locked, .acquire, .monotonic) == null; |
| 513 | } | 513 | } |
| 514 | 514 | ||
| 515 | pub fn unlock(m: *Mutex) void { | 515 | pub fn unlock(m: *Mutex) void { |