|
ThreadSchedule 1.0.0
Modern C++ thread management library
|
RAII controller that periodically perturbs scheduling attributes of registered threads for chaos/fuzz testing. More...
#include <chaos.hpp>
Public Member Functions | |
| template<typename Predicate> | |
| ChaosController (ChaosConfig cfg, Predicate pred) | |
| ChaosController (ChaosController const &)=delete | |
| auto | operator= (ChaosController const &) -> ChaosController &=delete |
RAII controller that periodically perturbs scheduling attributes of registered threads for chaos/fuzz testing.
On construction, ChaosController spawns a background std::thread that wakes every ChaosConfig::interval and applies perturbations (affinity shuffling, priority jitter) to threads in the global registry() that match the user-supplied predicate.
Ownership semantics:
Thread safety: The controller operates on the global registry(), which is internally synchronized, so multiple controllers or concurrent registrations are safe.
|
inline |
|
inline |