From 7212d86efdb976152665895648332aa1b102ed5a Mon Sep 17 00:00:00 2001 From: Wu Wayne Date: Wed, 4 Jan 2023 11:54:01 +0800 Subject: [PATCH] On iOS, add Sync trait on `EventLoopProxy` when `T` has Send trait --- .changes/ios-sync.md | 6 ++++++ src/platform_impl/ios/event_loop.rs | 1 + 2 files changed, 7 insertions(+) create mode 100644 .changes/ios-sync.md diff --git a/.changes/ios-sync.md b/.changes/ios-sync.md new file mode 100644 index 000000000..6c9e48713 --- /dev/null +++ b/.changes/ios-sync.md @@ -0,0 +1,6 @@ +--- +"tao": patch +--- + +On iOS, add Sync trait to `EventLoopProxy` when `T` has Send trait. + diff --git a/src/platform_impl/ios/event_loop.rs b/src/platform_impl/ios/event_loop.rs index d8af48f56..c804a7070 100644 --- a/src/platform_impl/ios/event_loop.rs +++ b/src/platform_impl/ios/event_loop.rs @@ -167,6 +167,7 @@ pub struct EventLoopProxy { } unsafe impl Send for EventLoopProxy {} +unsafe impl Sync for EventLoopProxy {} impl Clone for EventLoopProxy { fn clone(&self) -> EventLoopProxy {