aquatic_common: fix build error with aquatic_udp

This commit is contained in:
Joakim Frostegård 2022-04-04 23:00:07 +02:00
parent 908e18360c
commit ffce413217

View file

@ -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
}