feat: add ext status for cdylib

This commit is contained in:
yyc12345 committed 2026-05-17 16:02:39 +08:00
1 parent fe9f839091
commit f1a7cb89e5
2 files changed
+67 -2

No files matched your search

+12
View File
@@ -575,6 +575,18 @@ impl Drop for IconRc {
}
}
// SAFETY:
// Win32 HICON can be safely moved between different threads naturally.
unsafe impl Send for IconRc {}
// SAFETY:
// When multiple threads calling this struct, there is no conflict between them,
// because this struct only provide HICON itself.
//
// However, the caller should ensure that all calls using this HICON
// follow Win32 thread model.
unsafe impl Sync for IconRc {}
// endregion
// region: String Resource