Expand description
Thread-count selection helpers.
Constants§
- AVAILABLE_
PARALLELISM_ FALLBACK - Assumed parallelism when
available_parallelismis unavailable. - DEBUG_
STACK_ SIZE - Stack size for debug-build threads with deep density-function call chains.
Functions§
- available_
worker_ threads - Returns the host’s available parallelism, or
AVAILABLE_PARALLELISM_FALLBACK. - worker_
threads_ for_ available - Caps an explicit positive worker count to available parallelism, or uses half the available threads with a minimum target of two.