diff options
| author | xmh0511 <970252187@qq.com> | 2024-11-12 09:46:41 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-12 09:46:41 +0800 |
| commit | 95177699866a6101228ce0cc755b6c4eb162fa47 (patch) | |
| tree | 9d528a27bcd1bc475c8c56ff5cbe405b16e7e8a8 /library/std/src/thread | |
| parent | 81eef2d362a6f03db6f8928f82d94298d31eb81b (diff) | |
| download | rust-95177699866a6101228ce0cc755b6c4eb162fa47.tar.gz rust-95177699866a6101228ce0cc755b6c4eb162fa47.zip | |
a release operation synchronizes with an acquire operation
Diffstat (limited to 'library/std/src/thread')
| -rw-r--r-- | library/std/src/thread/mod.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/library/std/src/thread/mod.rs b/library/std/src/thread/mod.rs index 227ee9d64f3..36400be6132 100644 --- a/library/std/src/thread/mod.rs +++ b/library/std/src/thread/mod.rs @@ -1001,11 +1001,11 @@ impl Drop for PanicGuard { /// /// # Memory Ordering /// -/// Calls to `park` _synchronize-with_ calls to `unpark`, meaning that memory +/// Calls to `unpark` _synchronize-with_ calls to `park`, meaning that memory /// operations performed before a call to `unpark` are made visible to the thread that /// consumes the token and returns from `park`. Note that all `park` and `unpark` -/// operations for a given thread form a total order and `park` synchronizes-with -/// _all_ prior `unpark` operations. +/// operations for a given thread form a total order and _all_ prior `unpark` operations +/// synchronize-with `park`. /// /// In atomic ordering terms, `unpark` performs a `Release` operation and `park` /// performs the corresponding `Acquire` operation. Calls to `unpark` for the same |
