lien 0.1.2

Scoped lending of borrowed references
Documentation
1
2
3
4
5
6
7
8
9
10
11
use core::sync::atomic::{AtomicU64, Ordering};

#[inline]
pub fn wait(atom: &AtomicU64) {
    while atom.load(Ordering::Acquire) != 0 {
        core::hint::spin_loop();
    }
}

#[inline]
pub fn wake(_ptr: *const u64, _old: u64) {}