File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -73,9 +73,10 @@ struct EventHandle {
73
73
state : EventHandleState ,
74
74
}
75
75
76
- // SAFETY: EventHandle is Send automatically if not for HANDLE, which is a [non-autotrait'ed] pointer since windows-sys was updated to 0.59.
77
- // The capture device owns the original handle,
78
- // As long as the capture device isn't released before the EventHandle, this should be good.
76
+ // SAFETY: EventHandle needs to be Send because it's passed over a thread boundary.
77
+ // It contains a HANDLE that is a raw pointer, so the Send autotrait doesn't apply.
78
+ // The capture device owns the original handle; as long as the capture device isn't
79
+ // released before the EventHandle, this should be good.
79
80
unsafe impl Send for EventHandle { }
80
81
81
82
/// Newtype used to wrap `HANDLE` to make it `Send`:able
You can’t perform that action at this time.
0 commit comments