Skip to content

Make Buffer non-Send - #373

Open
Guflly wants to merge 2 commits into
rust-windowing:masterfrom
Guflly:fix/buffer-not-send
Open

Make Buffer non-Send#373
Guflly wants to merge 2 commits into
rust-windowing:masterfrom
Guflly:fix/buffer-not-send

Conversation

@Guflly

@Guflly Guflly commented Aug 3, 2026

Copy link
Copy Markdown

Fixes #347.

Buffer is now consistently non-Send, and the Android backend no longer overrides that with an unsafe implementation. This keeps thread-bound buffer guards on the thread that acquired them.

The existing non-Sync behavior is unchanged. This also updates an existing Clippy pattern required by current stable Rust.

Tested on:

  • AppKit (tier 1)
  • Wayland (tier 1)
  • Win32 (tier 1)
  • XCB / Xlib (tier 1)
  • Android NDK (tier 2)
  • UIKit (tier 2)
  • Web (tier 2)
  • DRM/KMS (tier 3)
  • Orbital (tier 3)

@Guflly
Guflly requested a review from MarijnS95 as a code owner August 3, 2026 01:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Buffer<'_> shouldn't be Send

1 participant