Skip to content

title: discv4::WatcherPool summary: Global resource pool shared across all chain DialSchedulers. Enforces a two-level fd cap: total across all chains, and per chain. max_total — global fd cap (mobile default 12, desktop 200) max_per_chain — per-chain cap (mobile default 3, desktop 50).


discv4::WatcherPool

Global resource pool shared across all chain DialSchedulers. Enforces a two-level fd cap: total across all chains, and per chain. max_total — global fd cap (mobile default 12, desktop 200) max_per_chain — per-chain cap (mobile default 3, desktop 50).

#include <dial_scheduler.hpp>

Public Functions

Name
WatcherPool(int max_total_, int max_per_chain_)

Public Attributes

Name
int max_total
int max_per_chain
std::atomic< int > active_total

Public Functions Documentation

function WatcherPool

inline WatcherPool(
    int max_total_,
    int max_per_chain_
)

Public Attributes Documentation

variable max_total

int max_total;

variable max_per_chain

int max_per_chain;

variable active_total

std::atomic< int > active_total {0};

Updated on 2026-04-13 at 23:22:46 -0700