We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 104e95f commit 650315eCopy full SHA for 650315e
library/std/src/sys/unix/locks/futex.rs
@@ -146,7 +146,7 @@ impl Condvar {
146
}
147
148
unsafe fn wait_optional_timeout(&self, mutex: &Mutex, timeout: Option<Duration>) -> bool {
149
- // Check the notification counter before we unlock the mutex.
+ // Examine the notification counter _before_ we unlock the mutex.
150
let futex_value = self.futex.load(Relaxed);
151
152
// Unlock the mutex before going to sleep.
0 commit comments