| author | |
| committer | |
| log | 73743ddbff5a7a0ffc8f7ecc780369cf5509795b |
| tree | 9783d08c0ac04e97f9e52604da8014ca78020341 |
| parent | 933bfd4282f99e7f59ab025bbff53454c0ae2f5c |
This silences a tsan race warning and gets optimized away in `ReleaseFast`.1 files changed, 1 insertions(+), 1 deletions(-)
lib/std/atomic.zig+1-1| ... | ... | @@ -513,7 +513,7 @@ pub const Mutex = enum(u8) { |
| 513 | 513 | } |
| 514 | 514 | |
| 515 | 515 | pub fn unlock(m: *Mutex) void { |
| 516 | assert(m.* == .locked); | |
| 516 | assert(@atomicLoad(Mutex, m, .unordered) == .locked); | |
| 517 | 517 | @atomicStore(Mutex, m, .unlocked, .release); |
| 518 | 518 | } |
| 519 | 519 | }; |