diff options
author | 2025-03-14 21:31:33 -0700 | |
---|---|---|
committer | 2025-03-14 21:31:33 -0700 | |
commit | 86883f5381efa4ec483672bbc53bce6193664741 (patch) | |
tree | ea82589e54743a75b4b2847ce432498ef40ea92d | |
parent | a5a581d7f6c46109e10c36a7c5a99b86a42d4b04 (diff) | |
parent | 22795fe48f7c1f17a5a480b72e90ccfd92baeed9 (diff) |
Merge "Implement Send for RpcServerConnection" into main am: c643576c05 am: 22795fe48f
Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/3398707
Change-Id: I980c90b1f974c4b7d953611b7ab58ffe549c40db
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-rw-r--r-- | libs/binder/rust/rpcbinder/src/server/trusty.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/binder/rust/rpcbinder/src/server/trusty.rs b/libs/binder/rust/rpcbinder/src/server/trusty.rs index fe45decf25..54d82d5bd0 100644 --- a/libs/binder/rust/rpcbinder/src/server/trusty.rs +++ b/libs/binder/rust/rpcbinder/src/server/trusty.rs @@ -106,6 +106,10 @@ pub struct RpcServerConnection { ctx: *mut c_void, } +// SAFETY: The opaque handle: `ctx` points into a dynamic allocation, +// and not tied to anything specific to the current thread. +unsafe impl Send for RpcServerConnection {} + impl Drop for RpcServerConnection { fn drop(&mut self) { // We do not need to close handle_fd since we do not own it. |