From dcf95fbd75705cc0f2d301b51a716ea1378a371a Mon Sep 17 00:00:00 2001 From: 5ohue <86558263+5ohue@users.noreply.github.com> Date: Fri, 24 May 2024 22:03:58 +0300 Subject: [PATCH] Add `impl Send` for wand types --- src/wand/macros.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/wand/macros.rs b/src/wand/macros.rs index 437f6d2..4c8e4a5 100644 --- a/src/wand/macros.rs +++ b/src/wand/macros.rs @@ -93,6 +93,13 @@ macro_rules! wand_common { } } } + + // The wand types should be safe to drop in a different thread + unsafe impl Send for $wand {} + + // Probably shouldn't implement Sync because some methods might not be + // safe to call on the same wand from different threads. + // unsafe impl Sync for $wand {} }; }