We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
#[inline(always)]
clone_arc_raw
1 parent 0cb6d5a commit b92f4c5Copy full SHA for b92f4c5
futures-task/src/waker.rs
@@ -36,6 +36,7 @@ unsafe fn increase_refcount<T: ArcWake + 'static>(data: *const ()) {
36
}
37
38
// used by `waker_ref`
39
+#[inline(always)]
40
unsafe fn clone_arc_raw<T: ArcWake + 'static>(data: *const ()) -> RawWaker {
41
unsafe { increase_refcount::<T>(data) }
42
RawWaker::new(data, waker_vtable::<T>())
0 commit comments