Home | History | Annotate | Download | only in Support

Lines Matching refs:ThreadPool

1 //==-- llvm/Support/ThreadPool.cpp - A ThreadPool implementation -*- C++ -*-==//
14 #include "llvm/Support/ThreadPool.h"
24 ThreadPool::ThreadPool() : ThreadPool(std::thread::hardware_concurrency()) {}
26 ThreadPool::ThreadPool(unsigned ThreadCount)
63 // Adjust `ActiveThreads`, in case someone waits on ThreadPool::wait()
68 // Notify task completion, in case someone waits on ThreadPool::wait()
75 void ThreadPool::wait() {
82 std::shared_future<ThreadPool::VoidTy> ThreadPool::asyncImpl(TaskTy Task) {
91 assert(EnableFlag && "Queuing a thread during ThreadPool destruction");
100 ThreadPool::~ThreadPool() {
112 ThreadPool::ThreadPool() : ThreadPool(0) {}
115 ThreadPool::ThreadPool(unsigned ThreadCount)
118 errs() << "Warning: request a ThreadPool with " << ThreadCount
123 void ThreadPool::wait() {
136 std::shared_future<ThreadPool::VoidTy> ThreadPool::asyncImpl(TaskTy Task) {
140 // Wrap the future so that both ThreadPool::wait() can operate and the
151 ThreadPool::~ThreadPool() {