Skip to content

Commit 9517769

Browse files
authored
a release operation synchronizes with an acquire operation
1 parent 81eef2d commit 9517769

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
@@ -1001,11 +1001,11 @@ impl Drop for PanicGuard {
10011001
///
10021002
/// # Memory Ordering
10031003
///
1004-
/// Calls to `park` _synchronize-with_ calls to `unpark`, meaning that memory
1004+
/// Calls to `unpark` _synchronize-with_ calls to `park`, meaning that memory
10051005
/// operations performed before a call to `unpark` are made visible to the thread that
10061006
/// consumes the token and returns from `park`. Note that all `park` and `unpark`
1007-
/// operations for a given thread form a total order and `park` synchronizes-with
1008-
/// _all_ prior `unpark` operations.
1007+
/// operations for a given thread form a total order and _all_ prior `unpark` operations
1008+
/// synchronize-with `park`.
10091009
///
10101010
/// In atomic ordering terms, `unpark` performs a `Release` operation and `park`
10111011
/// performs the corresponding `Acquire` operation. Calls to `unpark` for the same

0 commit comments

Comments
 (0)