c++14 lamdba表达式一个code小片段分析 -- from folly::NamedThreadFactory
代码片段 and 分析
return std::thread(
[func = std::move(func), name = std::move(name)]() mutable {
folly::setThreadName(name);
func();
});
c++14 lamdba表达式一个code小片段分析 -- from folly::NamedThreadFactory
return std::thread(
[func = std::move(func), name = std::move(name)]() mutable {
folly::setThreadName(name);
func();
});