datafrost 0.1.7

Data format and acceleration structure management.
Documentation
1
2
3
4
5
6
7
8
9
10
use std::sync::atomic::*;

/// A monotonic counter for generating unique IDs.
static ID_GENERATOR: AtomicU64 = AtomicU64::new(0);

/// Returns a value that is guaranteed to be unique
/// (only returned once) within this program's runtime.
pub fn unique_id() -> u64 {
    ID_GENERATOR.fetch_add(1, Ordering::Relaxed)
}