Skip to content

Commit 440421b

Browse files
committedApr 8, 2024
Rename ThreadPool to StdThreadPool
`ThreadPool` was split up in LLVM 6594f428de91e333c1cbea4f55e79b18d31024c4.

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎include/swift/DependencyScan/ModuleDependencyScanner.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ class ModuleDependencyScanner {
145145
/// The available pool of workers for filesystem module search
146146
unsigned NumThreads;
147147
std::list<std::unique_ptr<ModuleDependencyScanningWorker>> Workers;
148-
llvm::ThreadPool ScanningThreadPool;
148+
llvm::StdThreadPool ScanningThreadPool;
149149
/// Protect worker access.
150150
std::mutex WorkersLock;
151151
};

‎tools/swift-scan-test/swift-scan-test.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ int main(int argc, char *argv[]) {
221221
auto Args = createArgs(SwiftCommands, Saver);
222222

223223
std::atomic<int> Ret = 0;
224-
llvm::ThreadPool Pool(llvm::hardware_concurrency(Threads));
224+
llvm::StdThreadPool Pool(llvm::hardware_concurrency(Threads));
225225
for (unsigned i = 0; i < Threads; ++i) {
226226
Pool.async([&]() {
227227
switch (Action) {

0 commit comments

Comments
 (0)
Please sign in to comment.