mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-27 00:00:12 +02:00
wip
This commit is contained in:
@@ -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()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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! {
|
||||
|
||||
Reference in New Issue
Block a user