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

Web: Remove T from EventLoopTargetWindow #3081

Merged
merged 1 commit into from
Sep 3, 2023

Conversation

daxpedda
Copy link
Member

@daxpedda daxpedda commented Sep 2, 2023

Thanks to @nerditation.

Currently our custom Channel type actually uses an std::mpsc channel to send () to wake up the event loop. This is obviously nonsense because the actual user event already uses an std::mpsc and that way it can only handle a single user event at a time. I'm working currently on a rework that simply uses a AtomicUsize to figure out exactly how many user events have been sent without any channel to begin with. Or maybe some other idea I can come up with 😅.

Fixes the Web backend for #3053.

@daxpedda daxpedda merged commit 7a2a234 into rust-windowing:master Sep 3, 2023
@daxpedda daxpedda mentioned this pull request Sep 3, 2023
kchibisov pushed a commit to kchibisov/winit that referenced this pull request Oct 17, 2023
kchibisov pushed a commit that referenced this pull request Oct 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

1 participant