Home
last modified time | relevance | path

Searched refs:RawWaker (Results 1 – 18 of 18) 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.rs4 use core::task::{RawWaker, RawWakerVTable, Waker};
25 unsafe { Waker::from_raw(RawWaker::new(ptr, waker_vtable::<W>())) } in waker()
40 unsafe fn clone_arc_raw<T: ArcWake>(data: *const ()) -> RawWaker { in clone_arc_raw() argument
42 RawWaker::new(data, waker_vtable::<T>()) in clone_arc_raw()
Dwaker_ref.rs7 use core::task::{RawWaker, Waker};
64 ManuallyDrop::new(unsafe { Waker::from_raw(RawWaker::new(ptr, waker_vtable::<W>())) }); in waker_ref()
Dlib.rs50 pub use core::task::{Context, Poll, RawWaker, RawWakerVTable, Waker};
/external/rust/crates/futures-test/src/task/
Dpanic_waker.rs2 use futures_core::task::{RawWaker, RawWakerVTable, Waker};
4 unsafe fn clone_panic_waker(_data: *const ()) -> RawWaker { in clone_panic_waker() argument
19 const fn raw_panic_waker() -> RawWaker { in raw_panic_waker()
20 RawWaker::new(null(), &PANIC_WAKER_VTABLE) in raw_panic_waker()
53 struct SyncRawWaker(RawWaker); in panic_waker_ref()
59 unsafe { &*(&PANIC_WAKER_INSTANCE.0 as *const RawWaker as *const Waker) } in panic_waker_ref() constant
/external/crosvm/cros_async/src/
Dwaker.rs8 use std::task::RawWaker;
34 unsafe fn clone_weak_raw<W: WeakWake>(data: *const ()) -> RawWaker { in clone_weak_raw() argument
43 RawWaker::new(data, waker_vtable::<W>()) in clone_weak_raw()
66 Waker::from_raw(RawWaker::new( in new_waker()
/external/rust/crates/tokio/src/sync/tests/
Datomic_waker.rs44 use std::task::{RawWaker, RawWakerVTable, Waker}; in atomic_waker_panic_safe()
54 |_| RawWaker::new(ptr::null(), &NONPANICKING_VTABLE), in atomic_waker_panic_safe()
60 let panicking = unsafe { Waker::from_raw(RawWaker::new(ptr::null(), &PANICKING_VTABLE)) }; in atomic_waker_panic_safe()
61 let nonpanicking = unsafe { Waker::from_raw(RawWaker::new(ptr::null(), &NONPANICKING_VTABLE)) }; in atomic_waker_panic_safe()
Dnotify.rs5 use std::task::{Context, RawWaker, RawWakerVTable, Waker};
14 unsafe fn clone_w(data: *const ()) -> RawWaker { in notify_clones_waker_before_lock() argument
20 RawWaker::new(data, VTABLE) in notify_clones_waker_before_lock()
39 unsafe { Waker::from_raw(RawWaker::new(Arc::into_raw(notify2) as *const _, VTABLE)) }; in notify_clones_waker_before_lock()
Dloom_atomic_waker.rs51 use std::task::{RawWaker, RawWakerVTable, Waker}; in test_panicky_waker()
56 let panicking = unsafe { Waker::from_raw(RawWaker::new(ptr::null(), &PANICKING_VTABLE)) }; in test_panicky_waker()
/external/rust/crates/tokio/src/util/
Dwake.rs6 use std::task::{RawWaker, RawWakerVTable, Waker};
36 let waker = unsafe { Waker::from_raw(RawWaker::new(ptr, waker_vtable::<W>())) }; in waker_ref()
61 unsafe fn clone_arc_raw<T: Wake>(data: *const ()) -> RawWaker { in clone_arc_raw() argument
63 RawWaker::new(data, waker_vtable::<T>()) in clone_arc_raw()
/external/rust/crates/tokio/src/runtime/task/
Dwaker.rs8 use std::task::{RawWaker, RawWakerVTable, Waker};
69 unsafe fn clone_waker(ptr: *const ()) -> RawWaker { in clone_waker() argument
101 fn raw_waker(header: NonNull<Header>) -> RawWaker { in raw_waker() argument
103 RawWaker::new(ptr, &WAKER_VTABLE) in raw_waker()
/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-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/runtime/
Dpark.rs227 use std::task::{RawWaker, RawWakerVTable, Waker};
317 unsafe fn unparker_to_raw_waker(unparker: Arc<Inner>) -> RawWaker { in unparker_to_raw_waker() argument
318 RawWaker::new( in unparker_to_raw_waker()
324 unsafe fn clone(raw: *const ()) -> RawWaker { in clone() argument
/external/rust/crates/futures-util/src/compat/
Dcompat03as01.rs10 task::{RawWaker, RawWakerVTable},
165 unsafe fn clone(ptr: *const ()) -> RawWaker { in as_waker() argument
169 mem::transmute::<task03::Waker, RawWaker>(task03::waker(Arc::new( in as_waker()
181 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,
335 unsafe fn clone_waker(ptr: *const ()) -> RawWaker { in clone_waker() argument
347 RawWaker::new(ptr, &Self::RAW_WAKER_VTABLE) in clone_waker()
461 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, RawWaker, RawWakerVTable, Waker};
/external/rust/crates/futures-util/src/task/
Dmod.rs14 pub use core::task::{Context, Poll, RawWaker, RawWakerVTable, Waker};