Skip to content

Commit 650315e

Browse files
committed
Reword comment in futex condvar implementation.
1 parent 104e95f commit 650315e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/std/src/sys/unix/locks/futex.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ impl Condvar {
146146
}
147147

148148
unsafe fn wait_optional_timeout(&self, mutex: &Mutex, timeout: Option<Duration>) -> bool {
149-
// Check the notification counter before we unlock the mutex.
149+
// Examine the notification counter _before_ we unlock the mutex.
150150
let futex_value = self.futex.load(Relaxed);
151151

152152
// Unlock the mutex before going to sleep.

0 commit comments

Comments
 (0)