mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-29 00:00:11 +02:00
wip
This commit is contained in:
@@ -1017,7 +1017,10 @@ impl Worker {
|
|||||||
.idle
|
.idle
|
||||||
.notify_mult(synced, &mut self.workers_to_notify, num);
|
.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
|
// Make sure debug assertions are enabled
|
||||||
#[cfg(not(debug_assertions))]
|
#[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! {
|
cfg_not_loom! {
|
||||||
|
|||||||
Reference in New Issue
Block a user