Home
last modified time | relevance | path

Searched refs:Waker (Results 1 – 25 of 69) sorted by relevance

123

/external/rust/crates/mio/src/sys/unix/
Dwaker.rs17 pub struct Waker { struct
21 impl Waker { impl
22 pub fn new(selector: &Selector, token: Token) -> io::Result<Waker> { in new() argument
29 .map(|()| Waker { fd: file }) in new()
62 pub use self::eventfd::Waker;
78 pub struct Waker { struct
83 impl Waker { impl
84 pub fn new(selector: &Selector, token: Token) -> io::Result<Waker> { in new() argument
88 .map(|()| Waker { selector, token }) in new()
99 pub use self::kqueue::Waker; argument
[all …]
/external/rust/crates/futures-task/src/
Dwaker_ref.rs7 use core::task::{Waker, RawWaker};
15 waker: ManuallyDrop<Waker>,
21 pub fn new(waker: &'a Waker) -> Self { in new()
37 pub fn new_unowned(waker: ManuallyDrop<Waker>) -> Self { in new_unowned()
46 type Target = Waker;
48 fn deref(&self) -> &Waker { in deref() argument
67 Waker::from_raw(RawWaker::new(ptr, waker_vtable::<W>())) in waker_ref()
Dnoop_waker.rs4 use core::task::{RawWaker, RawWakerVTable, Waker};
29 pub fn noop_waker() -> Waker { in noop_waker()
31 unsafe { Waker::from_raw(noop_raw_waker()) } in noop_waker()
45 pub fn noop_waker_ref() -> &'static Waker { in noop_waker_ref()
52 unsafe { &*(&NOOP_WAKER_INSTANCE.0 as *const RawWaker as *const Waker) } in noop_waker_ref() constant
Dwaker.rs3 use core::task::{Waker, RawWaker, RawWakerVTable};
19 pub fn waker<W>(wake: Arc<W>) -> Waker in waker()
26 Waker::from_raw(RawWaker::new(ptr, waker_vtable::<W>())) in waker()
/external/rust/crates/tokio/src/sync/task/
Datomic_waker.rs8 use std::task::Waker;
27 waker: UnsafeCell<Option<Waker>>,
166 pub(crate) fn register_by_ref(&self, waker: &Waker) { in register_by_ref() argument
254 pub(crate) fn take_waker(&self) -> Option<Waker> { in take_waker() argument
302 fn into_waker(self) -> Waker; in into_waker() argument
305 impl WakerRef for Waker { implementation
310 fn into_waker(self) -> Waker { in into_waker() argument
315 impl WakerRef for &Waker { implementation
320 fn into_waker(self) -> Waker { in into_waker() argument
/external/rust/crates/mio/src/
Dwaker.rs78 pub struct Waker { struct
79 inner: sys::Waker, argument
82 impl Waker { impl
84 pub fn new(registry: &Registry, token: Token) -> io::Result<Waker> { in new() argument
87 sys::Waker::new(poll::selector(&registry), token).map(|inner| Waker { inner }) in new()
/external/rust/crates/mio/src/sys/windows/
Dwaker.rs10 pub struct Waker { struct
15 impl Waker { impl
16 pub fn new(selector: &Selector, token: Token) -> io::Result<Waker> { in new() argument
17 Ok(Waker { in new()
/external/rust/crates/async-task/src/
Dheader.rs4 use core::task::Waker;
22 pub(crate) awaiter: UnsafeCell<Option<Waker>>,
36 pub(crate) fn notify(&self, current: Option<&Waker>) { in notify() argument
46 pub(crate) fn take(&self, current: Option<&Waker>) -> Option<Waker> { in take() argument
76 pub(crate) fn register(&self, waker: &Waker) { in register() argument
/external/rust/crates/futures-core/src/task/__internal/
Datomic_waker.rs5 use core::task::Waker;
91 waker: UnsafeCell<Option<Waker>>,
203 impl AssertSync for Waker {} in new() implementation
261 pub fn register(&self, waker: &Waker) { in register() argument
371 pub fn take(&self) -> Option<Waker> { in take() argument
/external/rust/crates/futures/tests/
Darc_wake.rs2 use futures::task::{self, ArcWake, Waker};
32 let w1: Waker = task::waker(some_w.clone()); in create_from_arc()
53 let w1: Waker = task::waker(some_w.clone()); in ref_wake_same()
64 use futures::task::{self, ArcWake, Waker}; in proper_refcount_on_wake_panic()
77 let w1: Waker = task::waker(some_w.clone()); in proper_refcount_on_wake_panic()
/external/rust/crates/tokio/src/util/
Dwake.rs5 use std::task::{RawWaker, RawWakerVTable, Waker};
19 waker: ManuallyDrop<Waker>,
24 type Target = Waker;
26 fn deref(&self) -> &Waker { in deref() argument
35 let waker = unsafe { Waker::from_raw(RawWaker::new(ptr, waker_vtable::<W>())) }; in waker_ref()
/external/rust/crates/tokio/src/runtime/task/
Dwaker.rs9 use std::task::{RawWaker, RawWakerVTable, Waker};
12 waker: ManuallyDrop<Waker>,
31 let waker = unsafe { ManuallyDrop::new(Waker::from_raw(raw_waker::<T, S>(header))) }; in waker_ref()
40 type Target = Waker;
42 fn deref(&self) -> &Waker { in deref() argument
Draw.rs5 use std::task::{Poll, Waker};
20 pub(super) try_read_output: unsafe fn(NonNull<Header>, *mut (), &Waker),
78 pub(super) unsafe fn try_read_output(self, dst: *mut (), waker: &Waker) { in try_read_output() argument
115 waker: &Waker, in try_read_output() argument
Dcore.rs21 use std::task::{Context, Poll, Waker};
82 pub(super) waker: UnsafeCell<Option<Waker>>,
308 pub(crate) unsafe fn set_waker(&self, waker: Option<Waker>) { in set_waker() argument
314 pub(crate) unsafe fn will_wake(&self, waker: &Waker) -> bool { in will_wake()
/external/rust/crates/mio/src/sys/shell/
Dwaker.rs6 pub struct Waker {} struct
8 impl Waker { impl
9 pub fn new(_: &Selector, _: Token) -> io::Result<Waker> { in new() argument
/external/libchromeos-rs/src/sync/
Dblocking.rs21 thread_local!(static PER_THREAD_WAKER: Arc<Waker> = Arc::new(Waker(AtomicI32::new(WAITING))));
24 struct Waker(AtomicI32); struct
32 impl ArcWake for Waker { implementation
114 use std::task::{Context, Poll, Waker};
122 waker: Option<Waker>,
/external/crosvm/cros_async/src/sync/
Dblocking.rs21 thread_local!(static PER_THREAD_WAKER: Arc<Waker> = Arc::new(Waker(AtomicI32::new(WAITING))));
24 struct Waker(AtomicI32); struct
32 impl ArcWake for Waker { implementation
114 use std::task::{Context, Poll, Waker};
122 waker: Option<Waker>,
/external/rust/crates/tokio/src/sync/tests/
Datomic_waker.rs4 use std::task::Waker;
12 impl AssertSend for Waker {} implementation
13 impl AssertSync for Waker {} implementation
/external/rust/crates/crossbeam-channel/src/
Dwaker.rs26 pub struct Waker { struct
34 impl Waker { impl
38 Waker { in new()
167 impl Drop for Waker { implementation
180 inner: Spinlock<Waker>,
191 inner: Spinlock::new(Waker::new()), in new()
/external/crosvm/cros_async/src/
Dwaker.rs7 use std::task::{RawWaker, RawWakerVTable, Waker};
61 pub(crate) fn new_waker<W: WeakWake>(w: Weak<W>) -> Waker { in new_waker() argument
63 Waker::from_raw(RawWaker::new( in new_waker()
/external/rust/crates/tokio/src/sync/
Doneshot.rs65 use std::task::{Context, Poll, Waker};
188 struct Task(UnsafeCell<MaybeUninit<Waker>>);
197 F: FnOnce(&Waker) -> R, in with_task()
200 let waker: *const Waker = (&*ptr).as_ptr(); in with_task() constant
207 let ptr: *mut Waker = (&mut *ptr).as_mut_ptr(); in drop_task()
214 let ptr: *mut Waker = (&mut *ptr).as_mut_ptr(); in set_task()
718 self.rx_task.with_task(Waker::wake_by_ref); in complete()
794 self.tx_task.with_task(Waker::wake_by_ref); in close()
/external/rust/crates/futures-util/src/lock/
Dbilock.rs5 use futures_core::task::{Context, Poll, Waker};
103 let mut prev = Box::from_raw(n as *mut Waker); in poll_lock()
110 let me: Box<Waker> = waker.take().unwrap_or_else(||Box::new(cx.waker().clone())); in poll_lock()
122 waker = Some(Box::from_raw(me as *mut Waker)); in poll_lock()
183 Box::from_raw(n as *mut Waker).wake(); in unlock()
/external/rust/crates/futures-executor/benches/
Dthread_notify.rs8 use futures::task::{Context, Poll, Waker};
76 let (tx, rx) = mpsc::sync_channel::<Waker>(10_000); in thread_yield_multi_thread()
80 tx: mpsc::SyncSender<Waker>, in thread_yield_multi_thread()
/external/rust/crates/async-trait/tests/executor/
Dmod.rs4 use std::task::{Context, Poll, RawWaker, RawWakerVTable, Waker};
26 let waker = unsafe { Waker::from_raw(raw_waker) }; in block_on_simple()
/external/rust/crates/tokio/src/io/util/
Dmem.rs10 task::{self, Poll, Waker},
63 read_waker: Option<Waker>,
66 write_waker: Option<Waker>,

123