Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Window handle: Return an error when not on main thread on macOS and iOS #3288

Merged
merged 1 commit into from
Dec 22, 2023

Conversation

madsmtm
Copy link
Member

@madsmtm madsmtm commented Dec 22, 2023

Follow-up to #3270.

  • Tested on all platforms changed
  • Added an entry to CHANGELOG.md if knowledge of this change could be valuable to users
  • Updated documentation to reflect any user-facing changes, including notes of platform-specific behavior
  • Created or updated an example program if it would help users understand this functionality
  • Updated feature matrix, if new features were added or implemented

@daxpedda
Copy link
Member

#3270 was merged!

@madsmtm madsmtm marked this pull request as ready for review December 22, 2023 22:09
Comment on lines +1535 to +1536
// SAFETY: The window handle will never be deallocated while the window is alive,
// and the main thread safety requirements are upheld internally by each platform.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm intending to change the docs for raw-window-handle to make it clear that this is what's required

@madsmtm madsmtm merged commit 4aeeb24 into rust-windowing:master Dec 22, 2023
50 checks passed
@madsmtm madsmtm deleted the rwh-main-thread-apple branch December 22, 2023 22:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants