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
-
I was reading the code of
bevy_window
and found a struct calledThreadLockedRawWindowHandleWrapper
(TLRWHW) which is a wrapper around theRawHandleWrapper
struct. In the doc string, it says that aTLRWHW
is aRawHandleWrapper
that cannot be sent across threads, but there isn't actually anything preventing that from happening. In fact, because theTLRWHW
is used increate_surface
, it has to beSend
andSync
. Is this normal? Or is it an issue that should be fixed?Beta Was this translation helpful? Give feedback.
All reactions