[PATCH] D53651: [clangd] Use thread pool for background indexing.
Sam McCall via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 30 05:08:09 PDT 2018
sammccall accepted this revision.
sammccall added a comment.
This revision is now accepted and ready to land.
Nice! Sorry about the back and forth with threadpool...
================
Comment at: clangd/index/Background.cpp:35
+ assert(ThreadPoolSize > 0 && "Thread pool size can't be zero.");
+ while(ThreadPoolSize--) {
+ ThreadPool.emplace_back([this] { run(); });
----------------
sammccall wrote:
> nit: clang-format
(need to clang-format again)
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.org/D53651
More information about the cfe-commits
mailing list