| ... | @@ -111,7 +111,7 @@ pub const Node = struct { | ... | @@ -111,7 +111,7 @@ pub const Node = struct { |
| 111 | /// Tell the parent node that this node is actively being worked on. Thread-safe. | 111 | /// Tell the parent node that this node is actively being worked on. Thread-safe. |
| 112 | pub fn activate(self: *Node) void { | 112 | pub fn activate(self: *Node) void { |
| 113 | if (self.parent) |parent| { | 113 | if (self.parent) |parent| { |
| 114 | @atomicStore(?*Node, &parent.recently_updated_child, self, .Monotonic); | 114 | @atomicStore(?*Node, &parent.recently_updated_child, self, .Release); |
| 115 | } | 115 | } |
| 116 | } | 116 | } |
| 117 | | 117 | |
| ... | @@ -251,7 +251,7 @@ fn refreshWithHeldLock(self: *Progress) void { | ... | @@ -251,7 +251,7 @@ fn refreshWithHeldLock(self: *Progress) void { |
| 251 | need_ellipse = false; | 251 | need_ellipse = false; |
| 252 | } | 252 | } |
| 253 | } | 253 | } |
| 254 | maybe_node = @atomicLoad(?*Node, &node.recently_updated_child, .Monotonic); | 254 | maybe_node = @atomicLoad(?*Node, &node.recently_updated_child, .Acquire); |
| 255 | } | 255 | } |
| 256 | if (need_ellipse) { | 256 | if (need_ellipse) { |
| 257 | self.bufWrite(&end, "... ", .{}); | 257 | self.bufWrite(&end, "... ", .{}); |