mirror of
https://github.com/openharmony/third_party_rust_rust.git
synced 2026-08-28 04:10:09 -04:00
Reword comment in futex condvar implementation.
This commit is contained in:
@@ -146,7 +146,7 @@ impl Condvar {
|
||||
}
|
||||
|
||||
unsafe fn wait_optional_timeout(&self, mutex: &Mutex, timeout: Option<Duration>) -> bool {
|
||||
// Check the notification counter before we unlock the mutex.
|
||||
// Examine the notification counter _before_ we unlock the mutex.
|
||||
let futex_value = self.futex.load(Relaxed);
|
||||
|
||||
// Unlock the mutex before going to sleep.
|
||||
|
||||
Reference in New Issue
Block a user