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

This tells how a thread pool will be used

Created with MrDocs