Skip to content

Web: Remove T from EventLoopTargetWindow#3081

Merged
daxpedda merged 1 commit intorust-windowing:masterfrom
daxpedda:web-elwt-remove-generic-2
Sep 3, 2023
Merged

Web: Remove T from EventLoopTargetWindow#3081
daxpedda merged 1 commit intorust-windowing:masterfrom
daxpedda:web-elwt-remove-generic-2

Conversation

@daxpedda
Copy link
Copy Markdown
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.

Co-Authored-By: nerditation <12248559+nerditation@users.noreply.github.com>
@daxpedda daxpedda added the DS - web Affects the Web backend (WebAssembly/WASM) label Sep 2, 2023
@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
Co-authored-by: nerditation <12248559+nerditation@users.noreply.github.com>
kchibisov pushed a commit that referenced this pull request Oct 21, 2023
Co-authored-by: nerditation <12248559+nerditation@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

DS - web Affects the Web backend (WebAssembly/WASM)

Development

Successfully merging this pull request may close these issues.

1 participant