mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 00:34:06 +00:00
acquire loads can be done as relaxed load; acquire fence
This commit is contained in:
parent
9b8686d832
commit
9d8506d27f
@ -112,6 +112,9 @@
|
||||
//! read-only under certain conditions, but that is not a stable guarantee and should not be relied
|
||||
//! upon.
|
||||
//!
|
||||
//! If you need to do an acquire load on read-only memory, you can do a relaxed load followed by an
|
||||
//! acquire fence instead.
|
||||
//!
|
||||
//! # Examples
|
||||
//!
|
||||
//! A simple spinlock:
|
||||
|
Loading…
Reference in New Issue
Block a user