diff options
| author | Mara Bos <m-ou.se@m-ou.se> | 2022-04-05 17:08:12 +0200 |
|---|---|---|
| committer | Mara Bos <m-ou.se@m-ou.se> | 2022-04-05 17:08:12 +0200 |
| commit | 650315ee8801e650c049312a899de4202f54a701 (patch) | |
| tree | a8c7a706f9b73b9f74bd258348396eb94e2ea98a | |
| parent | 104e95f8481b8edf17e399bddf5b210d40a7775a (diff) | |
| download | rust-650315ee8801e650c049312a899de4202f54a701.tar.gz rust-650315ee8801e650c049312a899de4202f54a701.zip | |
Reword comment in futex condvar implementation.
| -rw-r--r-- | library/std/src/sys/unix/locks/futex.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/sys/unix/locks/futex.rs b/library/std/src/sys/unix/locks/futex.rs index d4588073072..630351d0dc2 100644 --- a/library/std/src/sys/unix/locks/futex.rs +++ b/library/std/src/sys/unix/locks/futex.rs @@ -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. |
