Remove QueryWaiter::notify
This commit is contained in:
parent
14786ce645
commit
38c39ffc6c
1 changed files with 2 additions and 8 deletions
|
@ -163,13 +163,6 @@ struct QueryWaiter {
|
|||
cycle: Mutex<Option<CycleError>>,
|
||||
}
|
||||
|
||||
impl QueryWaiter {
|
||||
fn notify(&self, registry: &rayon_core::Registry) {
|
||||
rayon_core::mark_unblocked(registry);
|
||||
self.condvar.notify_one();
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
struct QueryLatchInfo {
|
||||
complete: bool,
|
||||
|
@ -232,7 +225,8 @@ impl QueryLatch {
|
|||
info.complete = true;
|
||||
let registry = rayon_core::Registry::current();
|
||||
for waiter in info.waiters.drain(..) {
|
||||
waiter.notify(®istry);
|
||||
rayon_core::mark_unblocked(®istry);
|
||||
waiter.condvar.notify_one();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue