From f3277bfbc957a509c67d50a5220214c618e149b3 Mon Sep 17 00:00:00 2001 From: SabrinaJewson Date: Fri, 12 Jan 2024 12:19:16 +0000 Subject: [PATCH] Mention that Rust atomics correspond to `atomic_ref` --- src/atomics/atomics.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/atomics/atomics.md b/src/atomics/atomics.md index 71194e5..fc3acb4 100644 --- a/src/atomics/atomics.md +++ b/src/atomics/atomics.md @@ -13,9 +13,11 @@ received some bugfixes since then.) Trying to fully explain the model in this book is fairly hopeless. It's defined in terms of madness-inducing causality graphs that require a full book to properly understand in a practical way. If you want all the nitty-gritty -details, you should check out the [C++ specification][C++-model]. -Still, we'll try to cover the basics and some of the problems Rust developers -face. +details, you should check out the [C++ specification][C++-model] — +note that Rust atomics correspond to C++’s `atomic_ref`, since Rust allows +accessing atomics via non-atomic operations when it is safe to do so. +In this section we aim to give an informal overview of the topic to cover the +common problems that Rust developers face. ## Motivation