diff --git a/src/array_buffer.rs b/src/array_buffer.rs index e435dcb2..c5b2de5e 100644 --- a/src/array_buffer.rs +++ b/src/array_buffer.rs @@ -99,6 +99,8 @@ impl Delete for Allocator { #[repr(C)] pub struct BackingStore([usize; 6]); +unsafe impl Send for BackingStore {} + impl BackingStore { /// Returns a rust u8 slice with a lifetime equal to the lifetime of the BackingStore. pub fn data_bytes<'a>(&'a mut self) -> &'a mut [u8] { diff --git a/src/support.rs b/src/support.rs index fe402ea2..6bd668d2 100644 --- a/src/support.rs +++ b/src/support.rs @@ -169,6 +169,8 @@ where } } +unsafe impl Send for SharedRef where T: Shared + Send {} + impl Deref for SharedRef where T: Shared,