[all-commits] [llvm/llvm-project] d9c8b0: [Support] Use unique_function rather than std::fun...

lhames via All-commits all-commits at lists.llvm.org
Thu Sep 10 10:47:26 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: d9c8b0256cfc673c2413b13993c9440be598818f
      https://github.com/llvm/llvm-project/commit/d9c8b0256cfc673c2413b13993c9440be598818f
  Author: Lang Hames <lhames at gmail.com>
  Date:   2020-09-10 (Thu, 10 Sep 2020)

  Changed paths:
    M llvm/include/llvm/Support/ThreadPool.h
    M llvm/unittests/Support/ThreadPool.cpp

  Log Message:
  -----------
  [Support] Use unique_function rather than std::function for ThreadPool TaskTy.

This will allow non-copyable function objects (e.g. lambdas that capture
unique_ptrs) to be used with ThreadPool.

Differential Revision: https://reviews.llvm.org/D87467




More information about the All-commits mailing list