ccp-test-utils 0.17.0

Various test utils for CCP
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use ccp_shared::types::LogicalCoreId;
use cpu_utils::pinning::ThreadPinner;

pub const DUMMY: DummyThreadPinner = DummyThreadPinner {};

pub struct DummyThreadPinner;

impl ThreadPinner for DummyThreadPinner {
    #[inline]
    fn pin_current_thread_to(&self, _core_id: LogicalCoreId) -> bool {
        true
    }

    #[inline]
    fn pin_current_thread_to_cpuset(&self, _core_ids: &[LogicalCoreId]) -> bool {
        true
    }
}