OSDN Git Service

Revert "[Support] Use unique_function rather than std::function for ThreadPool TaskTy."
authorLang Hames <lhames@gmail.com>
Thu, 10 Sep 2020 18:36:13 +0000 (11:36 -0700)
committerLang Hames <lhames@gmail.com>
Thu, 10 Sep 2020 18:53:09 +0000 (11:53 -0700)
commit54fcea86b1658f5fc70f4f1e7a763f87742d79bc
tree826167e1b6d882a481572121685c79b3938b6e40
parentc195ae2f003261f2c25f569b07ae556dee57f17d
Revert "[Support] Use unique_function rather than std::function for ThreadPool TaskTy."

This reverts commit d9c8b0256cfc673c2413b13993c9440be598818f.

Some MSVC std::packaged_task implementations are not compatible with move-only types.
This caused failures on some of the Windows builders (e.g.
http://lab.llvm.org:8011/builders/sanitizer-windows/builds/69412).

Reverting until I can come up with a workaround.
llvm/include/llvm/Support/ThreadPool.h
llvm/unittests/Support/ThreadPool.cpp