mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-14 21:16:50 +00:00
Rollup merge of #132937 - xmh0511:master, r=m-ou-se
a release operation synchronizes with an acquire operation Change: 1. `Calls to park _synchronize-with_ calls to unpark` to `Calls to unpark _synchronize-with_ calls to park` 2. `park synchronizes-with _all_ prior unpark operations` to `_all_ prior unpark operations synchronize-with park`
This commit is contained in:
commit
58fac8fe72
@ -1021,11 +1021,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
|
||||
|
Loading…
Reference in New Issue
Block a user