Move CoreAffinityConfig to aquatic_common, use in glommio http

This commit is contained in:
Joakim Frostegård 2021-10-27 20:19:02 +02:00
parent 8747f8de4e
commit d659117ae5
7 changed files with 37 additions and 23 deletions

View file

@ -0,0 +1,17 @@
use serde::{Serialize, Deserialize};
#[derive(Clone, Debug, Serialize, Deserialize)]
#[serde(default)]
pub struct CoreAffinityConfig {
pub set_affinities: bool,
pub offset: usize,
}
impl Default for CoreAffinityConfig {
fn default() -> Self {
Self {
set_affinities: false,
offset: 0,
}
}
}

View file

@ -5,6 +5,7 @@ use indexmap::IndexMap;
use rand::Rng;
pub mod access_list;
pub mod cpu_pinning;
/// Peer or connection valid until this instant
///