summaryrefslogtreecommitdiffstats
path: root/lldb/source/Target/ThreadPlanStepRange.cpp
diff options
context:
space:
mode:
authorMehdi Amini <mehdi.amini@apple.com>2015-12-15 00:38:05 +0000
committerMehdi Amini <mehdi.amini@apple.com>2015-12-15 00:38:05 +0000
commitef0ef2860df2bdc8de10aa4f485a6541ef5cf87f (patch)
tree8c7454fcf0d3b698f38524fa4e0669a033d5327f /lldb/source/Target/ThreadPlanStepRange.cpp
parent354bbb2ccd4f4c33dce118a63ef2d7e1e17720b9 (diff)
downloadbcm5719-llvm-ef0ef2860df2bdc8de10aa4f485a6541ef5cf87f.tar.gz
bcm5719-llvm-ef0ef2860df2bdc8de10aa4f485a6541ef5cf87f.zip
Add a C++11 ThreadPool implementation in LLVM
This is a very simple implementation of a thread pool using C++11 thread. It accepts any std::function<void()> for asynchronous execution. Individual task can be synchronize using the returned future, or the client can block on the full queue completion. In case LLVM is configured with Threading disabled, it falls back to sequential execution using std::async with launch:deferred. This is intended to support parallelism for ThinLTO processing in linker plugin, but is generic enough for any other uses. This is a recommit of r255444 ; trying to workaround a bug in the MSVC 2013 standard library. I think I was hit by: http://connect.microsoft.com/VisualStudio/feedbackdetail/view/791185/std-packaged-task-t-where-t-is-void-or-a-reference-class-are-not-movable Differential Revision: http://reviews.llvm.org/D15464 From: Mehdi Amini <mehdi.amini@apple.com> llvm-svn: 255589
Diffstat (limited to 'lldb/source/Target/ThreadPlanStepRange.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud