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

Commit e741bdc4 authored by Andrew Walbran's avatar Andrew Walbran
Browse files

Surface should be Sync too.

Bug: 307535208
Test: m rust
Change-Id: I0b9d19fec972f1bc6f72e625166e372e48aa08ed
parent 8ee0ef1f
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -127,6 +127,9 @@ impl_serialize_for_unstructured_parcelable!(Surface);
// SAFETY: The underlying *ANativeWindow can be moved between threads.
unsafe impl Send for Surface {}

// SAFETY: The underlying *ANativeWindow can be used from multiple threads concurrently.
unsafe impl Sync for Surface {}

/// An error code returned by methods on [`Surface`].
#[derive(Copy, Clone, Debug, Eq, PartialEq)]
pub struct ErrorCode(i32);