summaryrefslogtreecommitdiffstats
path: root/lldb/unittests/Host/TaskPoolTest.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [lldb] A few minor fixes in TaskPoolAlexander Shaposhnikov2017-11-301-0/+2
| | | | | | | | | | | | | 1. Move TaskPool into the namespace lldb_private. 2. Add missing std::move in TaskPoolImpl::Worker. 3. std::thread::hardware_concurrency may return 0, handle this case correctly. Differential revision: https://reviews.llvm.org/D40587 Test plan: make check-all llvm-svn: 319492
* Use ThreadLauncher to launch TaskPool threadsFrancis Ricci2017-09-191-0/+43
Summary: This allows for the stack size to be configured, which isn't possible with std::thread. Prevents overflowing the stack when performing complex operations in the task pool on darwin, where the default pthread stack size is only 512kb. This also moves TaskPool from Utility to Host. Reviewers: labath, tberghammer, clayborg Subscribers: lldb-commits Differential Revision: https://reviews.llvm.org/D37930 llvm-svn: 313637
OpenPOWER on IntegriCloud