Skip to main content

run_sysinfo_loop

Function run_sysinfo_loop 

Source
pub async fn run_sysinfo_loop(
    broker: Arc<Broker>,
    config_watcher: Arc<ConfigState>,
    conn_name: String,
    panes: PaneSampler,
    stop: Arc<AtomicBool>,
)
Expand description

Run the sysinfo collection loop until stop is set. It must run on a runtime of its own (sampler::thread), not srv’s: every read below blocks its thread, and a sampler that waits for a free worker in the runtime it measures is late exactly when the machine is busiest. The interval is re-read from config each tick.