gil 0.8.0

A collection of high-performance, lock-free concurrent queues (SPSC, MPSC, MPMC, SPMC) with sync and async support
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
#[derive(Default)]
#[repr(align(64))]
#[cfg_attr(all(target_arch = "aarch64", target_os = "macos"), repr(align(128)))]
pub(crate) struct Padded<T> {
    pub(crate) value: T,
}

impl<T> Padded<T> {
    pub(crate) fn new(value: T) -> Self {
        Self { value }
    }
}