feat: mark SharedPtr as sync

This commit is contained in:
2024-05-07 10:45:10 +02:00
parent 7c336c8769
commit 18f1a1b9a6

View File

@@ -7,6 +7,7 @@ use crate::allocator::ALLOCATOR;
pub struct SharedPtr<const N: usize>(*mut u8); pub struct SharedPtr<const N: usize>(*mut u8);
unsafe impl<const N: usize> Send for SharedPtr<N> {} unsafe impl<const N: usize> Send for SharedPtr<N> {}
unsafe impl<const N: usize> Sync for SharedPtr<N> {}
impl<const N: usize> SharedPtr<N> { impl<const N: usize> SharedPtr<N> {
pub fn new() -> Option<Self> { pub fn new() -> Option<Self> {