Conversation
2e66158 to
b3000cf
Compare
This is not an alternative since it doesn't achieve what said PR achieves. However doing something like that is fine. |
bd80244 to
2933b0a
Compare
|
After looking into it, I don't think it's a good idea as of now to accept owned handler if winit can only provide This update should be a part of the winit safe handles work. |
b3000cf to
e66eba3
Compare
|
That should actually be good to go now, right? |
|
After looking at this a bit more closely, I question how thread safety is achieved here exactly. |
I think this works on platforms with a "main-thread only" concept, unsure about platforms where a handle may be bound to a specific thread (Windows?) My reasoning for main thread only being safe on macOS/iOS:
|
|
If the only valid thread is the main thread, I agree there is no problem, because Summarizing remaining problems:
|
Alternative to #3136. EDIT: We'd still need some more work to make
FullscreenSend + Syncon all platforms.Builds upon #3126 to remove the
unsafefromWindowBuilder::with_parent_window, by taking the lifetime inherent in that, and extending it on the platforms where it is relevant.TODO:
CHANGELOG.md