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

Mehdi Amini via llvm-commits llvm-commits at lists.llvm.org
Sun Feb 25 20:49:29 PST 2024


================
@@ -49,16 +46,31 @@ class ThreadPoolTaskGroup;
 /// available threads are used up by tasks waiting for a task that has no thread
 /// left to run on (this includes waiting on the returned future). It should be
 /// generally safe to wait() for a group as long as groups do not form a cycle.
-class ThreadPool {
+class ThreadPoolInterface {
+  // The actual method to enqueue a task to be defined by the concrete
----------------
joker-eph wrote:

Done

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


More information about the llvm-commits mailing list