Add impl Send for wand types

This commit is contained in:
5ohue
2024-05-24 22:03:58 +03:00
parent b35f21cd89
commit dcf95fbd75

View File

@ -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 {}
};
}