mirror of
https://code.blicky.net/yorhel/ncdu.git
synced 2026-01-13 01:08:41 -09:00
replace deprecated std.Atomic(T).fence with load
See https://github.com/ziglang/zig/pull/21585 . I went with second option listed in `Conditional Barriers` section. Signed-off-by: Eric Joldasov <bratishkaerik@landless-city.net>
This commit is contained in:
parent
6d67c0f876
commit
4847a753ad
1 changed files with 1 additions and 1 deletions
|
|
@ -162,7 +162,7 @@ pub const Dir = struct {
|
|||
|
||||
pub fn unref(d: *Dir, t: *Thread) void {
|
||||
if (d.refcnt.fetchSub(1, .release) != 1) return;
|
||||
d.refcnt.fence(.acquire);
|
||||
_ = d.refcnt.load(.acquire);
|
||||
|
||||
switch (d.out) {
|
||||
.mem => |*m| m.final(if (d.parent) |p| &p.out.mem else null),
|
||||
|
|
|
|||
Loading…
Reference in a new issue