Thread System 0.3.1
High-performance C++20 thread pool with work stealing and DAG scheduling
Loading...
Searching...
No Matches
kcenon::thread::steal_backoff_config Struct Reference

Configuration for backoff behavior. More...

#include <steal_backoff_strategy.h>

Collaboration diagram for kcenon::thread::steal_backoff_config:
Collaboration graph

Public Attributes

steal_backoff_strategy strategy = steal_backoff_strategy::exponential
 
std::chrono::microseconds initial_backoff {50}
 
std::chrono::microseconds max_backoff {1000}
 
double multiplier = 2.0
 Multiplier for exponential backoff.
 
double jitter_factor = 0.5
 Jitter range as fraction of delay (0.0 - 1.0)
 

Detailed Description

Configuration for backoff behavior.

Definition at line 51 of file steal_backoff_strategy.h.

Member Data Documentation

◆ initial_backoff

std::chrono::microseconds kcenon::thread::steal_backoff_config::initial_backoff {50}

◆ jitter_factor

double kcenon::thread::steal_backoff_config::jitter_factor = 0.5

Jitter range as fraction of delay (0.0 - 1.0)

Definition at line 57 of file steal_backoff_strategy.h.

Referenced by kcenon::thread::backoff_calculator::apply_jitter().

◆ max_backoff

std::chrono::microseconds kcenon::thread::steal_backoff_config::max_backoff {1000}

◆ multiplier

double kcenon::thread::steal_backoff_config::multiplier = 2.0

Multiplier for exponential backoff.

Definition at line 56 of file steal_backoff_strategy.h.

Referenced by kcenon::thread::backoff_calculator::calculate_base_delay(), and kcenon::thread::numa_work_stealer::set_config().

◆ strategy


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