Skip to content

Commit 9d8506d

Browse files
committed
acquire loads can be done as relaxed load; acquire fence
1 parent 9b8686d commit 9d8506d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

library/core/src/sync/atomic.rs

+3
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)