lock_free_buddy_allocator 0.2.1

Scalable lock-free buddy system allocator
Documentation
1
2
3
4
5
6
7
8
//! Definition of a trait for current CPU id
//!

/// Trait for current thread id.
pub trait Cpu {
    /// Returns ID of a current running CPU.
    fn current_cpu() -> usize;
}