diff options
Diffstat (limited to 'llvm/include/llvm/Support/ThreadPool.h')
-rw-r--r-- | llvm/include/llvm/Support/ThreadPool.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/include/llvm/Support/ThreadPool.h b/llvm/include/llvm/Support/ThreadPool.h index 4bcbaa3142f..32f88124ee5 100644 --- a/llvm/include/llvm/Support/ThreadPool.h +++ b/llvm/include/llvm/Support/ThreadPool.h @@ -13,6 +13,7 @@ #ifndef LLVM_SUPPORT_THREAD_POOL_H #define LLVM_SUPPORT_THREAD_POOL_H +#include "llvm/ADT/FunctionExtras.h" #include "llvm/Config/llvm-config.h" #include "llvm/Support/thread.h" @@ -35,7 +36,7 @@ namespace llvm { /// for some work to become available. class ThreadPool { public: - using TaskTy = std::function<void()>; + using TaskTy = unique_function<void()>; using PackagedTaskTy = std::packaged_task<void()>; /// Construct a pool with the number of threads found by |