Skip to content

Commit 18e9a52

Browse files
committed
acquire loads can be done as relaxed load; acquire fence
1 parent 2baa2b8 commit 18e9a52

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

core/src/sync/atomic.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,9 @@
112112
//! read-only under certain conditions, but that is not a stable guarantee and should not be relied
113113
//! upon.
114114
//!
115+
//! If you need to do an acquire load on read-only memory, you can do a relaxed load followed by an
116+
//! acquire fence instead.
117+
//!
115118
//! # Examples
116119
//!
117120
//! A simple spinlock:

0 commit comments

Comments
 (0)