Skip to content

Commit 2febf5f

Browse files
xmh0511gitbot
authored and
gitbot
committed
a release operation synchronizes with an acquire operation
1 parent 2df2c7c commit 2febf5f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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)