ΒΆinline llvm::ThreadPoolStrategy
heavyweight_hardware_concurrency(
    unsigned int ThreadCount = 0)

Description

Returns a thread strategy for tasks requiring significant memory or other resources. To be used for workloads where hardware_concurrency() proves to be less efficient. Avoid this strategy if doing lots of I/O. Currently based on physical cores, if available for the host system, otherwise falls back to hardware_concurrency(). Returns 1 when LLVM is configured with LLVM_ENABLE_THREADS = OFF.

Declared at: llvm/include/llvm/Support/Threading.h:162

Parameters

unsigned int ThreadCount = 0