Closed lifers closed 5 days ago
Is there any danger in assuming Send and Sync for types that contain windows_core::Weak? In comparison, std::sync::Weak is Send and Sync.
If it's safe, I'd like it to be implemented directly in the windows_core::Weak definition. Thanks!
Yep, IWeakReference and IWeakReferenceSource are designed and implemented to be completely thread safe.
IWeakReference
IWeakReferenceSource
Suggestion
Is there any danger in assuming Send and Sync for types that contain windows_core::Weak? In comparison, std::sync::Weak is Send and Sync.
If it's safe, I'd like it to be implemented directly in the windows_core::Weak definition. Thanks!