diff options
author | Alice Ryhl <[email protected]> | 2023-05-31 14:59:38 +0000 |
---|---|---|
committer | Miguel Ojeda <[email protected]> | 2023-05-31 18:53:10 +0200 |
commit | be7724cdbbca22e0cbde1edf30941a7aa4378ded (patch) | |
tree | 588498f46c522aff57e6c60a636fea4cc6a249e4 /rust/kernel/task.rs | |
parent | d701e061cb14f589f8c4f48fd7fbe81c0e34b7e7 (diff) |
rust: specify when `ARef` is thread safe
An `ARef` behaves just like the `Arc` when it comes to thread safety, so
we can reuse the thread safety comments from `Arc` here.
This is necessary because without this change, the Rust compiler will
assume that things are not thread safe even though they are.
Signed-off-by: Alice Ryhl <[email protected]>
Reviewed-by: Andreas Hindborg <[email protected]>
Reviewed-by: Boqun Feng <[email protected]>
Reviewed-by: Martin Rodriguez Reboredo <[email protected]>
Reviewed-by: Benno Lossin <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Miguel Ojeda <[email protected]>
Diffstat (limited to 'rust/kernel/task.rs')
0 files changed, 0 insertions, 0 deletions