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 55fc005 commit 3ccd3feCopy full SHA for 3ccd3fe
library/std/src/sys/sync/condvar/no_threads.rs
@@ -29,9 +29,7 @@ impl Condvar {
29
pub unsafe fn wait(&self, _mutex: &Mutex) {
30
let mut value = self.value.borrow_mut();
31
if *value == 0 {
32
- // Since the target does not have threads,
33
- // no notification can ever arrive.
34
- loop {}
+ panic!("condvar will never be notified");
35
} else {
36
*value -= 1;
37
}
0 commit comments