mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-03-31 17:55:36 +00:00
Rename CoreAffinityConfig to CpuPinningConfig, rename fields
This commit is contained in:
parent
d659117ae5
commit
35b8a1820d
6 changed files with 30 additions and 30 deletions
|
|
@ -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,
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue