Lines Matching full:threads
40 if (Threads.size() >= MaxThreadCount)
43 while (static_cast<int>(Threads.size()) < newThreadCount) {
44 int ThreadID = Threads.size();
45 Threads.emplace_back([this, ThreadID] {
87 // Need to count active threads in each group separately, ActiveThreads
128 // If this was a task in a group, notify also threads waiting for tasks
146 // Wait for all threads to complete and the queue to be empty
153 // Wait for all threads in the group to complete.
172 for (const llvm::thread &Thread : Threads)
178 // The destructor joins all threads, waiting for completion.
186 for (auto &Worker : Threads)
192 // No threads are launched, issue a warning if ThreadCount is not 0
197 << " threads, but LLVM_ENABLE_THREADS has been turned off\n";