ThreadSchedule 1.0.0
Modern C++ thread management library
Loading...
Searching...
No Matches
threadschedule::ChaosConfig Struct Reference

Plain value type holding runtime chaos-testing parameters. More...

#include <chaos.hpp>

Public Attributes

std::chrono::milliseconds interval {250}
int priority_jitter {0}
 +/- range applied around the current thread priority each interval.
bool shuffle_affinity {true}

Detailed Description

Plain value type holding runtime chaos-testing parameters.

All fields have sensible defaults so a default-constructed ChaosConfig is immediately usable.

See also
ChaosController

Definition at line 33 of file chaos.hpp.

Member Data Documentation

◆ interval

std::chrono::milliseconds threadschedule::ChaosConfig::interval {250}

Time between successive chaos perturbations (default 250 ms).

Definition at line 36 of file chaos.hpp.

◆ priority_jitter

int threadschedule::ChaosConfig::priority_jitter {0}

+/- range applied around the current thread priority each interval.

A value of 0 disables priority perturbation.

Definition at line 44 of file chaos.hpp.

◆ shuffle_affinity

bool threadschedule::ChaosConfig::shuffle_affinity {true}

Whether to reassign CPU affinities each interval (default true).

Definition at line 47 of file chaos.hpp.


The documentation for this struct was generated from the following file: