summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--installer-downloader/src/winapi_impl/delegate.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/installer-downloader/src/winapi_impl/delegate.rs b/installer-downloader/src/winapi_impl/delegate.rs
index 1312f5aec9..08f5292cad 100644
--- a/installer-downloader/src/winapi_impl/delegate.rs
+++ b/installer-downloader/src/winapi_impl/delegate.rs
@@ -224,7 +224,8 @@ pub struct Queue {
main_wnd: nwg::ControlHandle,
}
-// SAFETY: It is safe to post window messages across threads
+// SAFETY: It is safe to send HWND and HMENU handles across threads, particularly since we're always
+// using them on the main UI thread.
unsafe impl Send for Queue {}
/// The context contains a callback function that is passed as a pointer to the main thread