acquire loads can be done as relaxed load; acquire fence

This commit is contained in:
Ralf Jung 2023-10-15 17:41:38 +02:00
parent 9b8686d832
commit 9d8506d27f

View File

@ -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: