diff options
author | Tamas Berghammer <tberghammer@google.com> | 2015-10-20 12:42:05 +0000 |
---|---|---|
committer | Tamas Berghammer <tberghammer@google.com> | 2015-10-20 12:42:05 +0000 |
commit | ccb367609bdc19bccd73a8b7c79ee451096e738b (patch) | |
tree | 518068cbd9d2d22511f86b3b0daa4ae08492ec95 /clang/lib/CodeGen/CodeGenFunction.cpp | |
parent | 21296d230ac53d16cab8daf5395afdd803f4f277 (diff) | |
download | bcm5719-llvm-ccb367609bdc19bccd73a8b7c79ee451096e738b.tar.gz bcm5719-llvm-ccb367609bdc19bccd73a8b7c79ee451096e738b.zip |
Add a new task pool class to LLDB
The purpose of the class is to make it easy to execute tasks in parallel
Basic design goals:
* Have a very lightweight and easy to use interface where a list of
lambdas can be executed in parallel
* Use a global thread pool to limit the number of threads used
(std::async don't do it on Linux) and to eliminate the thread creation
overhead
* Destroy the thread currently not in use to avoid the confusion caused
by them during debugging LLDB
Possible future improvements:
* Possibility to cancel already added, but not yet started tasks
* Parallel for_each implementation
* Optimizations in the thread creation destroyation code
Differential revision: http://reviews.llvm.org/D13727
llvm-svn: 250820
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions