Skip to content

Commit 58fac8f

Browse files
authored
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`
2 parents 490b2cc + 9517769 commit 58fac8f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

library/std/src/thread/mod.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1021,11 +1021,11 @@ impl Drop for PanicGuard {
10211021
///
10221022
/// # Memory Ordering
10231023
///
1024-
/// Calls to `park` _synchronize-with_ calls to `unpark`, meaning that memory
1024+
/// Calls to `unpark` _synchronize-with_ calls to `park`, meaning that memory
10251025
/// operations performed before a call to `unpark` are made visible to the thread that
10261026
/// consumes the token and returns from `park`. Note that all `park` and `unpark`
1027-
/// operations for a given thread form a total order and `park` synchronizes-with
1028-
/// _all_ prior `unpark` operations.
1027+
/// operations for a given thread form a total order and _all_ prior `unpark` operations
1028+
/// synchronize-with `park`.
10291029
///
10301030
/// In atomic ordering terms, `unpark` performs a `Release` operation and `park`
10311031
/// performs the corresponding `Acquire` operation. Calls to `unpark` for the same

0 commit comments

Comments
 (0)