We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2c77310 commit aed6826Copy full SHA for aed6826
std/src/sys/sync/condvar/no_threads.rs
@@ -1,4 +1,5 @@
1
use crate::sys::sync::Mutex;
2
+use crate::thread::sleep;
3
use crate::time::Duration;
4
5
pub struct Condvar {}
@@ -19,7 +20,8 @@ impl Condvar {
19
20
panic!("condvar wait not supported")
21
}
22
- pub unsafe fn wait_timeout(&self, _mutex: &Mutex, _dur: Duration) -> bool {
23
- panic!("condvar wait not supported");
+ pub unsafe fn wait_timeout(&self, _mutex: &Mutex, dur: Duration) -> bool {
24
+ sleep(dur);
25
+ false
26
27
0 commit comments