mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-26 23:45:30 +00:00
clarify wording around spurious wakeups from thread::park
This commit is contained in:
parent
6e8a0136f1
commit
e9868ef8df
@ -891,8 +891,8 @@ pub fn sleep(dur: Duration) {
|
||||
/// performs the corresponding `Acquire` operation. Calls to `unpark` for the same
|
||||
/// thread form a [release sequence].
|
||||
///
|
||||
/// Note that being unblocked does not imply synchronization with a call to `unpark`,
|
||||
/// the wakeup could also be spurious. For example, a valid, but inefficient,
|
||||
/// Note that being unblocked does not imply a call was made to `unpark`, because
|
||||
/// wakeups can also be spurious. For example, a valid, but inefficient,
|
||||
/// implementation could have `park` and `unpark` return immediately without doing anything.
|
||||
///
|
||||
/// # Examples
|
||||
|
Loading…
Reference in New Issue
Block a user