Skip to content

Commit

Permalink
On iOS, add Sync trait on EventLoopProxy when T has Send trait (#658
Browse files Browse the repository at this point in the history
)
  • Loading branch information
wusyong committed Jan 4, 2023
1 parent b3aa398 commit 651137c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .changes/ios-sync.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"tao": patch
---

On iOS, add Sync trait to `EventLoopProxy` when `T` has Send trait.

1 change: 1 addition & 0 deletions src/platform_impl/ios/event_loop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ pub struct EventLoopProxy<T> {
}

unsafe impl<T: Send> Send for EventLoopProxy<T> {}
unsafe impl<T: Send> Sync for EventLoopProxy<T> {}

impl<T> Clone for EventLoopProxy<T> {
fn clone(&self) -> EventLoopProxy<T> {
Expand Down

0 comments on commit 651137c

Please sign in to comment.