[PATCH] D42174: [clangd] Refactored threading in ClangdServer
Ilya Biryukov via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Jan 31 00:49:38 PST 2018
ilya-biryukov added inline comments.
================
Comment at: clangd/TUScheduler.h:23
+/// synchronously).
+unsigned getDefaultAsyncThreadsCount();
+
----------------
sammccall wrote:
> just use llvm::hardware_concurrency()?
It can return 0, which will cause clangd to run synchronously. This function is only called when someone wants to have at least one worker thread for async processing.
We can change it if you want, but I'd rather leave it as is in this patch.
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.org/D42174
More information about the cfe-commits
mailing list