diff --git a/aquatic_common/src/cpu_pinning.rs b/aquatic_common/src/cpu_pinning.rs index 1e7bccc..ffb1019 100644 --- a/aquatic_common/src/cpu_pinning.rs +++ b/aquatic_common/src/cpu_pinning.rs @@ -35,6 +35,7 @@ impl Default for HyperThreadMapping { pub trait CpuPinningConfig { fn active(&self) -> bool; fn mode(&self) -> CpuPinningMode; + #[cfg(feature = "with-glommio")] fn hyperthread(&self) -> HyperThreadMapping; fn core_offset(&self) -> usize; } @@ -75,6 +76,7 @@ pub mod mod_name { fn mode(&self) -> CpuPinningMode { self.mode } + #[cfg(feature = "with-glommio")] fn hyperthread(&self) -> HyperThreadMapping { self.hyperthread }