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

Reimplement NativeDisplayMode on iOS for #1310 #1330

Merged
merged 2 commits into from
Dec 22, 2019

Conversation

simlay
Copy link
Contributor

@simlay simlay commented Dec 21, 2019

Closes #1310.

I pretty much did exactly as #1310 (comment) said. I'm not big on the name NativeDisplayMode nor that it's nearly the exact same code from the macOS logic but I figure it's an okay first pass.

  • Tested on all platforms changed
  • Compilation warnings were addressed
  • cargo fmt has been run on this branch
  • cargo doc builds successfully
  • 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

@simlay
Copy link
Contributor Author

simlay commented Dec 21, 2019

r? @aleksijuvani

@goddessfreya goddessfreya added DS - ios P - high Vital to have C - waiting on maintainer A maintainer must review this code labels Dec 22, 2019
Co-Authored-By: Aleksi Juvani <3168386+aleksijuvani@users.noreply.github.com>
@goddessfreya goddessfreya merged commit c10c820 into rust-windowing:master Dec 22, 2019
impl Drop for NativeDisplayMode {
fn drop(&mut self) {
unsafe {
let () = msg_send![self.0, release];
Copy link
Contributor

Choose a reason for hiding this comment

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

@aleksijuvani @simlay I was just merging master back into my winit-glutin-next and noticed that the assert_main_thread has been removed. Is this intentional?

Copy link

Choose a reason for hiding this comment

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

I think it's fine to pass this around multiple threads. If we see a crash here we'll revisit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C - waiting on maintainer A maintainer must review this code DS - ios P - high Vital to have
Development

Successfully merging this pull request may close these issues.

multithreaded doesn't compile on iOS
2 participants