feat: add ext status for cdylib
This commit is contained in:
1 parent
fe9f839091
commit
f1a7cb89e5
2 files changed
+67
-2
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user