[PATCH] D25784: [Support] ThreadPool: Don't spawn any threads when ThreadCount = 1
Mehdi AMINI via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 19 12:50:35 PDT 2016
mehdi_amini added a comment.
That seems fine and makes sense to me from an API point of view.
I'm not sure how to translate this to the user though: I don't expect someone to run `-threads=0`. And we're back to special casing in the client: `ThreadPool Pool(ThreadCount == 1 ? 0 : ThreadCount);` which isn't great either.
https://reviews.llvm.org/D25784
More information about the llvm-commits
mailing list