ThreadSchedule 1.0.0
Modern C++ thread management library
Loading...
Searching...
No Matches
chaos.hpp File Reference

Test/chaos features to perturb scheduling at runtime. More...

#include "scheduler_policy.hpp"
#include "thread_registry.hpp"
#include "thread_wrapper.hpp"
#include "topology.hpp"
#include <atomic>
#include <chrono>
#include <random>
#include <thread>
Include dependency graph for chaos.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  threadschedule::ChaosConfig
 Runtime chaos settings. More...
class  threadschedule::ChaosController
 RAII controller that periodically applies chaos operations. More...

Detailed Description

Test/chaos features to perturb scheduling at runtime.

Provides ChaosController, an RAII utility that periodically alters affinity and/or priority of threads selected from the global registry (by predicate). Useful to validate stability under core migrations, contention, and priority changes.

Definition in file chaos.hpp.