summaryrefslogtreecommitdiff
path: root/libs/nativewindow/rust/src/surface.rs
diff options
context:
space:
mode:
Diffstat (limited to 'libs/nativewindow/rust/src/surface.rs')
-rw-r--r--libs/nativewindow/rust/src/surface.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/libs/nativewindow/rust/src/surface.rs b/libs/nativewindow/rust/src/surface.rs
index c812612d40..25fea807b5 100644
--- a/libs/nativewindow/rust/src/surface.rs
+++ b/libs/nativewindow/rust/src/surface.rs
@@ -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);