Skip to content

Conversation

@madsmtm
Copy link
Member

@madsmtm madsmtm commented Nov 23, 2025

The threading implications of accessing a window from another thread are unclear, so Winit chooses to block on the main thread on macOS and iOS.

This means that we have to send the surface width and height to the other thread instead of trying to access it dynamically from the window.

This fixes #249.

The threading implications of accessing a window from another thread are
unclear, so Winit chooses to block on the main thread on macOS and iOS.

This means that we have to send the surface width and height to the
other thread instead of trying to access it dynamically from the window.
@madsmtm madsmtm added documentation Improvements or additions to documentation CoreGraphics macOS/iOS/tvOS/watchOS/visionOS backend labels Nov 23, 2025
@madsmtm madsmtm changed the title example: Do not send Window to another thread Do not send Window to another thread in winit_multithread example Nov 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CoreGraphics macOS/iOS/tvOS/watchOS/visionOS backend documentation Improvements or additions to documentation

Development

Successfully merging this pull request may close these issues.

Problem with winit_multithread example on macOS

2 participants