diff options
author | Tim Northover <t.p.northover@gmail.com> | 2021-07-08 14:59:47 +0100 |
---|---|---|
committer | Tim Northover <t.p.northover@gmail.com> | 2021-07-08 14:59:47 +0100 |
commit | 2bf5e8d953ededbc208bd4c116c9d6331d73f0f0 (patch) | |
tree | 6f0e1d1dce203f49fd943933ea271edbb56bee75 /llvm/lib/Support/ThreadPool.cpp | |
parent | 727e1c9be3a5b20c6b502f056d74a681689049d7 (diff) | |
download | llvm-2bf5e8d953ededbc208bd4c116c9d6331d73f0f0.tar.gz |
Revert "Support: add llvm::thread class that supports specifying stack size."
It's causing build failures because DefaultStackSize isn't defined everywhere
it should be and I need time to investigate.
Diffstat (limited to 'llvm/lib/Support/ThreadPool.cpp')
-rw-r--r-- | llvm/lib/Support/ThreadPool.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Support/ThreadPool.cpp b/llvm/lib/Support/ThreadPool.cpp index 81926d8071b2..f442b3b0bc98 100644 --- a/llvm/lib/Support/ThreadPool.cpp +++ b/llvm/lib/Support/ThreadPool.cpp @@ -73,8 +73,8 @@ void ThreadPool::wait() { } bool ThreadPool::isWorkerThread() const { - llvm::thread::id CurrentThreadId = llvm::this_thread::get_id(); - for (const llvm::thread &Thread : Threads) + std::thread::id CurrentThreadId = std::this_thread::get_id(); + for (const std::thread &Thread : Threads) if (CurrentThreadId == Thread.get_id()) return true; return false; |