pub(crate) const fn new(user_data: T) -> Mutex<T> {
        Mutex {
            lock: AtomicBool::new(false),
            data: UnsafeCell::new(user_data),
        }
    }
/// Creates a new spinlock wrapping the supplied data.
Creates a new spinlock wrapping the supplied data.
Creates a new spinlock wrapping the supplied data .
pub(crate) const fn new(user_data: T) -> Mutex<T> {
        Mutex {
            lock: AtomicBool::new(false),
            data: UnsafeCell::new(user_data),
        }
    }
pub ( crate ) const fn new ( user_data : T ) -> Mutex < T > { Mutex { lock : AtomicBool :: new ( false ) , data : UnsafeCell :: new ( user_data ) , } }
Creates a new spinlock wrapping the supplied data.
Creates a new spinlock wrapping the supplied data .
user_data
T
user_data
T