mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-03-31 17:55:36 +00:00
aquatic_common: fix build error with aquatic_udp
This commit is contained in:
parent
908e18360c
commit
ffce413217
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue