Skip to content

Commit

Permalink
improve wording
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung committed Dec 3, 2018
1 parent 7b6ad7a commit 76cd8f0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/libstd/thread/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -806,9 +806,10 @@ const NOTIFIED: usize = 2;
/// In other words, each [`Thread`] acts a bit like a spinlock that can be
/// locked and unlocked using `park` and `unpark`.
///
/// Notice that it would be a valid (but inefficient) implementation to make both [`park`] and
/// [`unpark`] NOPs that return immediately. Being unblocked does not imply
/// any synchronization with someone that unparked this thread, it could also be spurious.
/// 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 without doing anything.
///
/// The API is typically used by acquiring a handle to the current thread,
/// placing that handle in a shared data structure so that other threads can
Expand Down

0 comments on commit 76cd8f0

Please sign in to comment.