Skip to content

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

Merged
madsmtm merged 1 commit intorust-windowing:masterfrom
madsmtm:rwh-main-thread-apple
Dec 22, 2023
Merged

Window handle: Return an error when not on main thread on macOS and iOS#3288
madsmtm merged 1 commit intorust-windowing:masterfrom
madsmtm:rwh-main-thread-apple

Conversation

@madsmtm
Copy link
Copy Markdown
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

@madsmtm madsmtm added DS - appkit Affects the AppKit/macOS backend DS - uikit Affects the UIKit backend (iOS, tvOS, watchOS, visionOS) labels Dec 22, 2023
@daxpedda
Copy link
Copy Markdown
Member

#3270 was merged!

@madsmtm madsmtm force-pushed the rwh-main-thread-apple branch from 6d8fa48 to 6e7df36 Compare December 22, 2023 22:04
@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
Copy Markdown
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
@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

Labels

DS - appkit Affects the AppKit/macOS backend DS - uikit Affects the UIKit backend (iOS, tvOS, watchOS, visionOS)

Development

Successfully merging this pull request may close these issues.

2 participants