many_cpus 2.4.0

Efficiently schedule work and inspect the hardware environment on many-processor systems
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use std::fmt::{Debug, Display};
use std::hash::Hash;

use crate::{EfficiencyClass, MemoryRegionId, ProcessorId};

pub(crate) trait AbstractProcessor:
    Clone + Copy + Debug + Display + Eq + Hash + PartialEq + Send
{
    fn id(&self) -> ProcessorId;
    fn memory_region_id(&self) -> MemoryRegionId;
    fn efficiency_class(&self) -> EfficiencyClass;
}