Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d1ce298d authored by Jim Shargo's avatar Jim Shargo
Browse files

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
parent 3ee8f054
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);
}