feat: mark SharedPtr as sync
This commit is contained in:
@@ -7,6 +7,7 @@ use crate::allocator::ALLOCATOR;
|
||||
pub struct SharedPtr<const N: usize>(*mut u8);
|
||||
|
||||
unsafe impl<const N: usize> Send for SharedPtr<N> {}
|
||||
unsafe impl<const N: usize> Sync for SharedPtr<N> {}
|
||||
|
||||
impl<const N: usize> SharedPtr<N> {
|
||||
pub fn new() -> Option<Self> {
|
||||
|
||||
Reference in New Issue
Block a user