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

Improve thread safety #2985

Merged
merged 8 commits into from
Aug 14, 2023
Merged

Improve thread safety #2985

merged 8 commits into from
Aug 14, 2023

Conversation

madsmtm
Copy link
Member

@madsmtm madsmtm commented Jul 29, 2023

Improve thread safety on macOS and iOS.

@daxpedda: This is using a generic mechanism that unifies it with the web backend - I think it's the right way forward, although it might be slightly less efficient (since it has to do the main thread check a bit more often).

Part of #2464.

  • Tested on all platforms changed
    • MacOS
    • Web
    • IOS
  • Added an entry to CHANGELOG.md if knowledge of this change could be valuable to users

@madsmtm madsmtm added B - bug Dang, that shouldn't have happened DS - macos DS - ios DS - web S - maintenance Repaying technical debt labels Jul 29, 2023
@madsmtm madsmtm force-pushed the improve-thread-safety branch 2 times, most recently from 163afba to 6644770 Compare July 31, 2023 01:17
Copy link
Member

@daxpedda daxpedda left a comment

Choose a reason for hiding this comment

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

Wow, that's a nice idea.

Web looks good, the improvements you made are great.

CHANGELOG.md Outdated Show resolved Hide resolved
@daxpedda daxpedda force-pushed the improve-thread-safety branch 4 times, most recently from f4942ea to 3a1f19d Compare August 5, 2023 19:20
@madsmtm madsmtm force-pushed the improve-thread-safety branch from 3a1f19d to a8daf53 Compare August 7, 2023 08:34
src/window.rs Outdated Show resolved Hide resolved
@kchibisov
Copy link
Member

I'd need this on Wayland as well if it matters, but not due to thread safety reasons. I'll try to post a patch for what I need once I have time...

@kchibisov kchibisov self-requested a review August 10, 2023 17:01
@kchibisov kchibisov added this to the Version 0.29.0 milestone Aug 13, 2023
@kchibisov kchibisov force-pushed the improve-thread-safety branch from e6b1751 to ddc1d6b Compare August 14, 2023 19:05
Copy link
Member

@kchibisov kchibisov left a comment

Choose a reason for hiding this comment

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

I've decided to not add Wayland part as of now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
B - bug Dang, that shouldn't have happened DS - ios DS - macos DS - web S - maintenance Repaying technical debt
Development

Successfully merging this pull request may close these issues.

3 participants