diff options
author | 2024-12-09 20:26:14 +0000 | |
---|---|---|
committer | 2025-03-12 05:45:35 +0000 | |
commit | 18f3c168f232ac4de431063b1fd53c1e89702edf (patch) | |
tree | 4f1c21e7e47e4a4aebe22830015e948298fb547c /libs/binder | |
parent | fcbbe1795996853fb857be9e7527340623c6464b (diff) |
Implement Send for RpcServerConnection
Test: N/A
Bug: 382291660
Change-Id: I0e5fbede384c67439d54c7b8f53ae8622886f704
Diffstat (limited to 'libs/binder')
-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. |