This commit is contained in:
Carl Lerche
2023-06-13 13:43:58 -07:00
parent 152d4fc899
commit 46c4e87ab4
2 changed files with 5 additions and 2 deletions
@@ -1017,7 +1017,10 @@ impl Worker {
.idle
.notify_mult(synced, &mut self.workers_to_notify, num);
debug_assert!(self.workers_to_notify.is_empty());
// Notify any workers
for worker in self.workers_to_notify.drain(..) {
cx.shared().condvars[worker].notify_one()
}
}
}
+1 -1
View File
@@ -63,7 +63,7 @@ cfg_loom! {
// Make sure debug assertions are enabled
#[cfg(not(debug_assertions))]
compiler_error!("these tests require debug assertions to be enabled");
compile_error!("these tests require debug assertions to be enabled");
}
cfg_not_loom! {