This commit is contained in:
Matthias Einwag 2019-02-03 14:59:22 -08:00
parent 9e6bc3c438
commit f005e1c5d7

View File

@ -69,7 +69,7 @@ struct Counter {
wakes: AtomicUsize,
}
impl Wake for Counter {
impl ArcWake for Counter {
fn wake(arc_self: &Arc<Self>) {
arc_self.wakes.fetch_add(1, atomic::Ordering::SeqCst);
}