Limit threads to about TaskCount so small jobs avoid oversubscription.

Synopsis

Declared in <llvm/Support/Threading.h>

ThreadPoolStrategy
optimal_concurrency(unsigned int TaskCount = 0);

Return Value

Strategy capped near TaskCount worker threads.

Parameters

Name

Description

TaskCount

Approximate number of tasks; 0 means no extra limit.

Created with MrDocs