From 18f1a1b9a6f2d29f215cb238e470ca91f9e03bc3 Mon Sep 17 00:00:00 2001 From: Aaron Kaiser Date: Tue, 7 May 2024 10:45:10 +0200 Subject: [PATCH] feat: mark SharedPtr as sync --- src/sharedptr.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/sharedptr.rs b/src/sharedptr.rs index 8750384..e363536 100644 --- a/src/sharedptr.rs +++ b/src/sharedptr.rs @@ -7,6 +7,7 @@ use crate::allocator::ALLOCATOR; pub struct SharedPtr(*mut u8); unsafe impl Send for SharedPtr {} +unsafe impl Sync for SharedPtr {} impl SharedPtr { pub fn new() -> Option {