Home
last modified time | relevance | path

Searched refs:will_wake (Results 1 – 13 of 13) sorted by relevance

/external/rust/crates/futures/tests/
Darc_wake.rs57 assert!(w1.will_wake(&w2)); in ref_wake_same()
58 assert!(w2.will_wake(&w3)); in ref_wake_same()
/external/rust/crates/tokio/src/sync/
Doneshot.rs191 unsafe fn will_wake(&self, cx: &mut Context<'_>) -> bool { in will_wake() method
192 self.with_task(|w| w.will_wake(cx.waker())) in will_wake()
487 let will_notify = unsafe { inner.tx_task.will_wake(cx) }; in poll_closed()
743 let will_notify = unsafe { self.rx_task.will_wake(cx) }; in poll_recv()
Dnotify.rs648 if !w.waker.as_ref().unwrap().will_wake(cx.waker()) { in poll()
Dbatch_semaphore.rs377 .map(|waker| !waker.will_wake(cx.waker())) in poll_acquire()
Dbroadcast.rs745 Some(ref w) if w.will_wake(waker) => {} in recv_ref()
/external/rust/crates/tokio/src/runtime/task/
Dharness.rs311 let will_wake = unsafe { in can_read_output() localVariable
314 trailer.will_wake(waker) in can_read_output()
317 if will_wake { in can_read_output()
Dcore.rs314 pub(crate) unsafe fn will_wake(&self, waker: &Waker) -> bool { in will_wake() method
316 .with(|ptr| (*ptr).as_ref().unwrap().will_wake(waker)) in will_wake()
/external/rust/crates/async-task/src/
Dheader.rs63 Some(c) if !w.will_wake(c) => return Some(w), in take()
/external/rust/crates/tokio/src/io/driver/
Dscheduled_io.rs316 if !existing.will_wake(cx.waker()) { in poll_readiness()
499 if !w.waker.as_ref().unwrap().will_wake(cx.waker()) {
/external/rust/crates/grpcio/src/task/
Dmod.rs98 if guard.waker.is_none() || !guard.waker.as_ref().unwrap().will_wake(cx.waker()) { in poll()
/external/rust/crates/futures-util/src/future/future/
Dshared.rs185 Some(ref old_waker) if new_waker.will_wake(old_waker) => {} in record_waker()
/external/rust/crates/futures-util/src/lock/
Dmutex.rs56 Self::Waiting(w) if waker.will_wake(w) => {}, in register()
/external/rust/crates/tokio/
DCHANGELOG.md957 - rt: fix `Waker::will_wake` to return true when tasks match ([#2045]).