Skip to content

Commit

Permalink
tidy
Browse files Browse the repository at this point in the history
Co-authored-by: yvt <i@yvt.jp>
  • Loading branch information
ibraheemdev and yvt authored Oct 5, 2022
1 parent 9de1d7c commit 1bae661
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/std/src/thread/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -880,7 +880,7 @@ pub fn sleep(dur: Duration) {
/// * It can be implemented very efficiently on many platforms.
///
/// # Memory Orderings
///
///
/// Calls to `park` _synchronize-with_ calls to `unpark`, 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`
Expand All @@ -890,7 +890,7 @@ pub fn sleep(dur: Duration) {
/// In atomic ordering terms, `unpark` performs a `Release` operation and `park`
/// performs the corresponding `Acquire` operation. Calls to `unpark` for the same
/// thread form a [release sequence].
///
///
/// Notice that being unblocked does not imply any synchronization with someone that
/// unparked this thread, it could also be spurious. For example, it would be a valid,
/// but inefficient, implementation to make both park and unpark return immediately
Expand Down

0 comments on commit 1bae661

Please # to comment.