diff --git a/com-scrape-types/src/ptr.rs b/com-scrape-types/src/ptr.rs index 8bfd72afc..b86c217ba 100644 --- a/com-scrape-types/src/ptr.rs +++ b/com-scrape-types/src/ptr.rs @@ -69,6 +69,10 @@ impl<'a, I: Interface> Clone for ComRef<'a, I> { } } +unsafe impl<'a, I: Interface> Send for ComRef<'a, I> where I: Sync + Send {} + +unsafe impl<'a, I: Interface> Sync for ComRef<'a, I> where I: Sync + Send {} + impl<'a, I: Interface> ComRef<'a, I> { /// Gets the wrapped interface pointer. /// @@ -192,6 +196,10 @@ impl Clone for ComPtr { } } +unsafe impl Send for ComPtr where I: Sync + Send {} + +unsafe impl Sync for ComPtr where I: Sync + Send {} + impl Drop for ComPtr { #[inline] fn drop(&mut self) {