Skip to content

Commit

Permalink
missing send/sync on web.rs on BufferMappedRange for fragile-send-syn…
Browse files Browse the repository at this point in the history
…c-non-atomic-wasm + !atomics
  • Loading branch information
Wumpf committed Dec 9, 2023
1 parent e423612 commit d461208
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions wgpu/src/backend/web.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,16 @@ unsafe impl Send for Context {}
not(target_feature = "atomics")
))]
unsafe impl Sync for Context {}
#[cfg(all(
feature = "fragile-send-sync-non-atomic-wasm",
not(target_feature = "atomics")
))]
unsafe impl Send for BufferMappedRange {}
#[cfg(all(
feature = "fragile-send-sync-non-atomic-wasm",
not(target_feature = "atomics")
))]
unsafe impl Sync for BufferMappedRange {}

impl fmt::Debug for Context {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
Expand Down

0 comments on commit d461208

Please sign in to comment.