We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6b6c0a6 commit 1713e9fCopy full SHA for 1713e9f
src/arc-drop.md
@@ -22,12 +22,11 @@ also return if the returned value from `fetch_sub` (the value of the reference
22
count before decrementing it) is not equal to `1` (which happens when we are not
23
the last reference to the data).
24
```rust,ignore
25
-if inner.rc.fetch_sub(1, Ordering::???) != 1 {
+if inner.rc.fetch_sub(1, Ordering::Relaxed) != 1 {
26
return;
27
}
28
```
29
30
-TODO
31
We then need to create an atomic fence to prevent reordering of the use of the
32
data and deletion of the data. As described in [the standard library's
33
implementation of `Arc`][3]:
0 commit comments