[PATCH] D54813: [Common] Threads: use function_ref instead of std::function
Fangrui Song via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 26 16:29:50 PST 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rL347620: [Common] Threads: use function_ref instead of std::function (authored by MaskRay, committed by ).
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D54813/new/
https://reviews.llvm.org/D54813
Files:
lld/trunk/include/lld/Common/Threads.h
Index: lld/trunk/include/lld/Common/Threads.h
===================================================================
--- lld/trunk/include/lld/Common/Threads.h
+++ lld/trunk/include/lld/Common/Threads.h
@@ -74,7 +74,7 @@
}
inline void parallelForEachN(size_t Begin, size_t End,
- std::function<void(size_t)> Fn) {
+ llvm::function_ref<void(size_t)> Fn) {
if (ThreadsEnabled)
for_each_n(llvm::parallel::par, Begin, End, Fn);
else
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D54813.175365.patch
Type: text/x-patch
Size: 497 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181127/81fa75a9/attachment.bin>
More information about the llvm-commits
mailing list