Commit 7b431db1 authored by Alice Ryhl's avatar Alice Ryhl Committed by Treehugger Robot
Browse files

UPSTREAM: rust: workqueue: implement `WorkItemPointer` for pointer types



This implements the `WorkItemPointer` trait for the pointer types that
you are likely to use the workqueue with. The `Arc` type is for
reference counted objects, and the `Pin<Box<T>>` type is for objects
where the caller has exclusive ownership of the object.

Co-developed-by: default avatarGary Guo <gary@garyguo.net>
Signed-off-by: default avatarGary Guo <gary@garyguo.net>
Signed-off-by: default avatarAlice Ryhl <aliceryhl@google.com>
Reviewed-by: default avatarMartin Rodriguez Reboredo <yakoyoku@gmail.com>
Reviewed-by: default avatar"Andreas Hindborg (Samsung)" <nmi@metaspace.dk>
Reviewed-by: default avatarBenno Lossin <benno.lossin@proton.me>
Reviewed-by: default avatarBoqun Feng <boqun.feng@gmail.com>
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
[ Upstream commit 47f0dbe8 ]
Change-Id: I9c55650e60e99f0e3b1c1675ebdfcf234bbc322b
Signed-off-by: default avatarAlice Ryhl <aliceryhl@google.com>
parent c5e9e92b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment