We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent be181dd commit d2120e6Copy full SHA for d2120e6
library/std/src/sys/pal/unix/sync/condvar.rs
@@ -64,7 +64,10 @@ impl Condvar {
64
// https://gist.github.com/stepancheg/198db4623a20aad2ad7cddb8fda4a63c
65
//
66
// To work around this issue, the timeout is clamped to 1000 years.
67
- #[cfg(target_vendor = "apple")]
+ //
68
+ // Cygwin implementation is based on NT API and a super large timeout
69
+ // makes the syscall block forever.
70
+ #[cfg(any(target_vendor = "apple", target_os = "cygwin"))]
71
let dur = Duration::min(dur, Duration::from_secs(1000 * 365 * 86400));
72
73
let timeout = Timespec::now(Self::CLOCK).checked_add_duration(&dur);
0 commit comments