rts-alloc 4.0.0

Shared memory allocator intended for small frequent allocations
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
pub type CacheAlignedU16 = CacheAligned<crate::sync::AtomicU16>;
pub type CacheAlignedU64 = CacheAligned<crate::sync::AtomicU64>;

#[repr(C, align(64))]
pub struct CacheAligned<T>(pub T);

impl<T> core::ops::Deref for CacheAligned<T> {
    type Target = T;

    fn deref(&self) -> &Self::Target {
        &self.0
    }
}