/external/rust/crates/futures-task/src/ |
D | noop_waker.rs | 4 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
|
D | waker.rs | 3 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()
|
D | waker_ref.rs | 7 use core::task::{Waker, RawWaker}; 67 Waker::from_raw(RawWaker::new(ptr, waker_vtable::<W>())) in waker_ref()
|
D | lib.rs | 54 pub use core::task::{Context, Poll, Waker, RawWaker, RawWakerVTable};
|
/external/crosvm/cros_async/src/ |
D | waker.rs | 7 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/ |
D | wake.rs | 5 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/ |
D | mod.rs | 4 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/ |
D | waker.rs | 9 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/ |
D | driver.rs | 14 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/ |
D | task.rs | 10 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/ |
D | thread.rs | 221 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/ |
D | compat03as01.rs | 10 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/ |
D | raw.rs | 8 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/ |
D | mod.rs | 10 pub use core::task::{Context, Poll, Waker, RawWaker, RawWakerVTable};
|
/external/rust/crates/futures-util/src/task/ |
D | mod.rs | 14 pub use core::task::{Context, Poll, Waker, RawWaker, RawWakerVTable};
|