[Lldb-commits] [lldb] [llvm] [mlir] Split the llvm::ThreadPool into an abstract base class and an implementation (PR #82094)

Alexandre Ganea via lldb-commits lldb-commits at lists.llvm.org
Wed Feb 28 05:32:16 PST 2024


================
@@ -140,54 +142,74 @@ class ThreadPool {
             },
             std::move(F)};
   }
+};
+
+/// A ThreadPool implementation using std::threads.
+///
+/// The pool keeps a vector of threads alive, waiting on a condition variable
+/// for some work to become available.
+class StdThreadPool : public ThreadPoolInterface {
----------------
aganea wrote:

Same here, `#if LLVM_ENABLE_THREADS` maybe? The definition in the .cpp has the define.

https://github.com/llvm/llvm-project/pull/82094


More information about the lldb-commits mailing list