diff options
author | 2023-12-19 23:23:41 +0000 | |
---|---|---|
committer | 2024-02-16 02:49:19 +0000 | |
commit | d1ce298dca8720479c4db78de0b35a3e3b5727f0 (patch) | |
tree | 57348a45dee9416f1e47703a0890aa2c7f335dc5 | |
parent | 3ee8f054d57c13633445f6f02ede3496d3e3cd59 (diff) |
bufferstreams: Make BufferOwner Send+Sync
This is important for IPCs to work, since buffers can come in over the
wire, be processed by binder threads, and handed off to
client-controlled worker threads.
Bug: 296099728
Test: atest
Change-Id: I9c32ac17e07456aa6a8e7211c67893a51fc9724c
-rw-r--r-- | libs/bufferstreams/rust/src/buffers/buffer_owner.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/bufferstreams/rust/src/buffers/buffer_owner.rs b/libs/bufferstreams/rust/src/buffers/buffer_owner.rs index a4abb9d3b7..155a8bf238 100644 --- a/libs/bufferstreams/rust/src/buffers/buffer_owner.rs +++ b/libs/bufferstreams/rust/src/buffers/buffer_owner.rs @@ -16,7 +16,7 @@ use super::Buffer; /// Trait that represents an owner of a buffer that might need to handle events such as a buffer /// being dropped. -pub trait BufferOwner { +pub trait BufferOwner: Send + Sync { /// Called when a buffer is dropped. fn on_return(&self, buffer: &Buffer); } |