]> git.proxmox.com Git - rustc.git/blame - library/std/src/sys/unsupported/locks/condvar.rs
New upstream version 1.63.0+dfsg1
[rustc.git] / library / std / src / sys / unsupported / locks / condvar.rs
CommitLineData
5e7ed085 1use crate::sys::locks::Mutex;
532ac7d7 2use crate::time::Duration;
abe05a73 3
dfeec247 4pub struct Condvar {}
abe05a73 5
29967ef6
XL
6pub type MovableCondvar = Condvar;
7
abe05a73 8impl 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}