summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorDavid Lönnhager <david.l@mullvad.net>2025-03-04 09:16:27 +0100
committerDavid Lönnhager <david.l@mullvad.net>2025-03-05 23:32:52 +0100
commitfe255f09ac6c5f9599b6c4447a722f062f2773cc (patch)
tree16228f6dd7b1bbca536e3a77b261711d7c73d91a
parent60cace55d7aa7605ba48c41b0741415f73f0a8d2 (diff)
downloadmullvadvpn-fe255f09ac6c5f9599b6c4447a722f062f2773cc.tar.xz
mullvadvpn-fe255f09ac6c5f9599b6c4447a722f062f2773cc.zip
Improve safety documentation
-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