Rename CoreAffinityConfig to CpuPinningConfig, rename fields

This commit is contained in:
Joakim Frostegård 2021-10-27 20:21:11 +02:00
parent d659117ae5
commit 35b8a1820d
6 changed files with 30 additions and 30 deletions

View file

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