ΒΆinline llvm::ThreadPoolStrategy
hardware_concurrency(unsigned int ThreadCount = 0)
inline llvm::ThreadPoolStrategy
hardware_concurrency(unsigned int ThreadCount = 0)
Description
Returns a default thread strategy where all available hardware resources are to be used, except for those initially excluded by an affinity mask. This function takes affinity into consideration. Returns 1 when LLVM is configured with LLVM_ENABLE_THREADS=OFF.
Declared at: llvm/include/llvm/Support/Threading.h:185
Parameters
- unsigned int ThreadCount = 0