We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c004cb commit 3a96588Copy full SHA for 3a96588
core/src/syscall/unix/pthread_cond_timedwait.rs
@@ -60,6 +60,15 @@ impl<I: PthreadCondTimedwaitSyscall> PthreadCondTimedwaitSyscall
60
lock: *mut pthread_mutex_t,
61
abstime: *const timespec,
62
) -> c_int {
63
+ #[cfg(all(unix, feature = "preemptive"))]
64
+ if crate::monitor::Monitor::current().is_some() {
65
+ return self.inner.pthread_cond_timedwait(
66
+ fn_ptr,
67
+ cond,
68
+ lock,
69
+ abstime,
70
+ );
71
+ }
72
let abstimeout = if abstime.is_null() {
73
u64::MAX
74
} else {
0 commit comments