Skip to content

Commit e9868ef

Browse files
authored
clarify wording around spurious wakeups from thread::park
1 parent 6e8a013 commit e9868ef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/std/src/thread/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -891,8 +891,8 @@ pub fn sleep(dur: Duration) {
891891
/// performs the corresponding `Acquire` operation. Calls to `unpark` for the same
892892
/// thread form a [release sequence].
893893
///
894-
/// Note that being unblocked does not imply synchronization with a call to `unpark`,
895-
/// the wakeup could also be spurious. For example, a valid, but inefficient,
894+
/// Note that being unblocked does not imply a call was made to `unpark`, because
895+
/// wakeups can also be spurious. For example, a valid, but inefficient,
896896
/// implementation could have `park` and `unpark` return immediately without doing anything.
897897
///
898898
/// # Examples

0 commit comments

Comments
 (0)