Add TaskMap for iterating a function over a set of integers
authorPavel Labath <labath@google.com>
Fri, 5 May 2017 11:16:59 +0000 (11:16 +0000)
committerPavel Labath <labath@google.com>
Fri, 5 May 2017 11:16:59 +0000 (11:16 +0000)
commit5c913e9973f40d5f49c126d873eceaef761aa169
tree404025dabcf3409ea45f870a578bee2c19e81327
parent1d47a15d898ba8b3204d2fd611b6a6978ea08c6d
Add TaskMap for iterating a function over a set of integers

Summary:
Many parallel tasks just want to iterate over all the possible numbers from 0 to N-1.  Rather than enqueue N work items, instead just "map" the function across the requested integer space.

Reviewers: clayborg, labath, tberghammer, zturner

Reviewed By: clayborg, zturner

Subscribers: zturner, lldb-commits

Differential Revision: https://reviews.llvm.org/D32757
Patch by Scott Smith <scott.smith@purestorage.com>.

llvm-svn: 302223
lldb/include/lldb/Utility/TaskPool.h
lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp
lldb/source/Utility/TaskPool.cpp
lldb/unittests/Utility/TaskPoolTest.cpp