]>
Commit | Line | Data |
---|---|---|
5e7ed085 | 1 | use crate::sys::locks::Mutex; |
532ac7d7 | 2 | use crate::time::Duration; |
abe05a73 | 3 | |
dfeec247 | 4 | pub struct Condvar {} |
abe05a73 | 5 | |
29967ef6 XL |
6 | pub type MovableCondvar = Condvar; |
7 | ||
abe05a73 | 8 | impl Condvar { |
923072b8 | 9 | #[inline] |
abe05a73 | 10 | pub const fn new() -> Condvar { |
dfeec247 | 11 | Condvar {} |
abe05a73 XL |
12 | } |
13 | ||
abe05a73 | 14 | #[inline] |
dfeec247 | 15 | pub unsafe fn notify_one(&self) {} |
abe05a73 XL |
16 | |
17 | #[inline] | |
dfeec247 | 18 | pub unsafe fn notify_all(&self) {} |
abe05a73 XL |
19 | |
20 | pub unsafe fn wait(&self, _mutex: &Mutex) { | |
3dfed10e | 21 | panic!("condvar wait not supported") |
abe05a73 XL |
22 | } |
23 | ||
24 | pub unsafe fn wait_timeout(&self, _mutex: &Mutex, _dur: Duration) -> bool { | |
3dfed10e | 25 | panic!("condvar wait not supported"); |
abe05a73 | 26 | } |
abe05a73 | 27 | } |