ThreadLockedRawWindowHandle isn't actually thread locked? #12663
ItsSunnyMonster
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I was reading the code of
bevy_windowand found a struct calledThreadLockedRawWindowHandleWrapper(TLRWHW) which is a wrapper around theRawHandleWrapperstruct. In the doc string, it says that aTLRWHWis aRawHandleWrapperthat cannot be sent across threads, but there isn't actually anything preventing that from happening. In fact, because theTLRWHWis used increate_surface, it has to beSendandSync. Is this normal? Or is it an issue that should be fixed?Beta Was this translation helpful? Give feedback.
All reactions