From 1bb9bc01af3cc556effed609df96d45134e32632 Mon Sep 17 00:00:00 2001 From: Balazs Udvarhelyi Date: Mon, 28 Mar 2022 16:58:09 +0200 Subject: [PATCH] Send and sync macros --- src/macros.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/macros.rs b/src/macros.rs index b0f4ec12..cdf825d3 100644 --- a/src/macros.rs +++ b/src/macros.rs @@ -41,6 +41,10 @@ macro_rules! ffi_wrapper { self.inner = ::std::ptr::null_mut(); } } + + unsafe impl$(<$($lt),*>)? Send for $name$(<$($lt),*>)? {} + + unsafe impl$(<$($lt),*>)? Sync for $name$(<$($lt),*>)? {} }; ($name:ident $(<$($lt:lifetime),*>)?, *mut $ty:ty $(;$extra_id:ident: $extra_ty:ty => $extra_expr:expr;)* $(, $doc:expr)?) => { $(#[doc = $doc])?