Add optimal thread strategy
authorDmitry Antipov <dmantipov@yandex.ru>
Wed, 23 Sep 2020 16:37:50 +0000 (19:37 +0300)
committerDmitry Antipov <dmantipov@yandex.ru>
Wed, 23 Sep 2020 16:44:22 +0000 (19:44 +0300)
commit68358081585b160c38443425935457235a4b9d1a
tree415cf563f4f4ba4f615cb7401384bd527544ab09
parent437358be7179d570de070bbb9b2e1154db727f6d
Add optimal thread strategy

Add an optimal thread strategy to execute specified amount of tasks.
This strategy should prevent us from creating too many threads if we
occasionaly have an unexpectedly small amount of tasks.

Differential Revision: https://reviews.llvm.org/D87765
lldb/source/Plugins/SymbolFile/DWARF/ManualDWARFIndex.cpp
llvm/include/llvm/Support/Threading.h