Home
last modified time | relevance | path

Searched refs:RawWaker (Results 1 – 15 of 15) sorted by relevance

/external/rust/crates/futures-task/src/
Dnoop_waker.rs4 use core::task::{RawWaker, RawWakerVTable, Waker};
6 unsafe fn noop_clone(_data: *const ()) -> RawWaker { in noop_clone() argument
14 const fn noop_raw_waker() -> RawWaker { in noop_raw_waker()
15 RawWaker::new(null(), &NOOP_WAKER_VTABLE) in noop_raw_waker()
46 struct SyncRawWaker(RawWaker); 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};
26 Waker::from_raw(RawWaker::new(ptr, waker_vtable::<W>())) in waker()
42 unsafe fn clone_arc_raw<T: ArcWake>(data: *const ()) -> RawWaker { in clone_arc_raw() argument
44 RawWaker::new(data, waker_vtable::<T>()) in clone_arc_raw()
Dwaker_ref.rs7 use core::task::{Waker, RawWaker};
67 Waker::from_raw(RawWaker::new(ptr, waker_vtable::<W>())) in waker_ref()
Dlib.rs54 pub use core::task::{Context, Poll, Waker, RawWaker, RawWakerVTable};
/external/crosvm/cros_async/src/
Dwaker.rs7 use std::task::{RawWaker, RawWakerVTable, Waker};
31 unsafe fn clone_weak_raw<W: WeakWake>(data: *const ()) -> RawWaker { in clone_weak_raw() argument
40 RawWaker::new(data, waker_vtable::<W>()) in clone_weak_raw()
63 Waker::from_raw(RawWaker::new( in new_waker()
/external/rust/crates/tokio/src/util/
Dwake.rs5 use std::task::{RawWaker, RawWakerVTable, Waker};
35 let waker = unsafe { Waker::from_raw(RawWaker::new(ptr, waker_vtable::<W>())) }; in waker_ref()
64 unsafe fn clone_arc_raw<T: Wake>(data: *const ()) -> RawWaker { in clone_arc_raw() argument
66 RawWaker::new(data, waker_vtable::<T>()) in clone_arc_raw()
/external/rust/crates/async-trait/tests/executor/
Dmod.rs4 use std::task::{Context, Poll, RawWaker, RawWakerVTable, Waker};
9 unsafe fn clone(_null: *const ()) -> RawWaker { in block_on_simple() argument
25 let raw_waker = RawWaker::new(data, vtable); in block_on_simple()
/external/rust/crates/tokio/src/runtime/task/
Dwaker.rs9 use std::task::{RawWaker, RawWakerVTable, Waker};
47 unsafe fn clone_waker<T, S>(ptr: *const ()) -> RawWaker in clone_waker()
88 fn raw_waker<T, S>(header: *const Header) -> RawWaker in raw_waker()
100 RawWaker::new(ptr, vtable) in raw_waker()
/external/rust/crates/tokio/src/signal/unix/
Ddriver.rs14 use std::task::{Context, Poll, RawWaker, RawWakerVTable, Waker};
103 let waker = unsafe { Waker::from_raw(RawWaker::new(ptr::null(), &NOOP_WAKER_VTABLE)) }; in process()
133 unsafe fn noop_clone(_data: *const ()) -> RawWaker { in noop_clone() argument
134 RawWaker::new(ptr::null(), &NOOP_WAKER_VTABLE) in noop_clone()
/external/rust/crates/tokio-test/src/
Dtask.rs10 use std::task::{Context, Poll, RawWaker, RawWakerVTable, Waker};
221 unsafe fn to_raw(waker: Arc<ThreadWaker>) -> RawWaker { in to_raw() argument
222 RawWaker::new(Arc::into_raw(waker) as *const (), &VTABLE) in to_raw()
229 unsafe fn clone(raw: *const ()) -> RawWaker { in clone() argument
/external/rust/crates/tokio/src/park/
Dthread.rs221 use std::task::{RawWaker, RawWakerVTable, Waker};
315 unsafe fn unparker_to_raw_waker(unparker: Arc<Inner>) -> RawWaker { in unparker_to_raw_waker() argument
316 RawWaker::new( in unparker_to_raw_waker()
322 unsafe fn clone(raw: *const ()) -> RawWaker { in clone() argument
/external/rust/crates/futures-util/src/compat/
Dcompat03as01.rs10 task::{RawWaker, RawWakerVTable},
189 unsafe fn clone(ptr: *const ()) -> RawWaker { in as_waker() argument
193 mem::transmute::<task03::Waker, RawWaker>( in as_waker()
205 task03::Waker::from_raw(RawWaker::new(ptr, vtable)) in as_waker()
/external/rust/crates/async-task/src/
Draw.rs8 use core::task::{Context, Poll, RawWaker, RawWakerVTable, Waker};
36 pub(crate) clone_waker: unsafe fn(ptr: *const ()) -> RawWaker,
313 unsafe fn clone_waker(ptr: *const ()) -> RawWaker { in clone_waker() argument
325 RawWaker::new(ptr, &Self::RAW_WAKER_VTABLE) in clone_waker()
439 let waker = ManuallyDrop::new(Waker::from_raw(RawWaker::new(ptr, &Self::RAW_WAKER_VTABLE))); in run()
/external/rust/crates/futures-core/src/task/
Dmod.rs10 pub use core::task::{Context, Poll, Waker, RawWaker, RawWakerVTable};
/external/rust/crates/futures-util/src/task/
Dmod.rs14 pub use core::task::{Context, Poll, Waker, RawWaker, RawWakerVTable};