Name |
Last commit
|
Last update |
---|---|---|
.. | ||
1.cc | ||
2.cc | ||
3.cc | ||
4.cc | ||
49668.cc | ||
5.cc | ||
6.cc | ||
69724.cc | ||
7.cc | ||
8.cc | ||
84535.cc | ||
9.cc | ||
assign_neg.cc | ||
copy_neg.cc | ||
lwg2097.cc | ||
moveable.cc | ||
terminate.cc |
The std::thread constructor creates (and then moves) an unnecessary temporary copy of each argument. Optimize it to only make the one copy that is required. PR libstdc++/69724 * include/std/thread (thread::_State_impl, thread::_S_make_state): Replace single _Callable parameter with variadic _Args pack, to forward them directly to the tuple of decayed copies. * testsuite/30_threads/thread/cons/69724.cc: New test. From-SVN: r271166
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
1.cc | Loading commit data... | |
2.cc | Loading commit data... | |
3.cc | Loading commit data... | |
4.cc | Loading commit data... | |
49668.cc | Loading commit data... | |
5.cc | Loading commit data... | |
6.cc | Loading commit data... | |
69724.cc | Loading commit data... | |
7.cc | Loading commit data... | |
8.cc | Loading commit data... | |
84535.cc | Loading commit data... | |
9.cc | Loading commit data... | |
assign_neg.cc | Loading commit data... | |
copy_neg.cc | Loading commit data... | |
lwg2097.cc | Loading commit data... | |
moveable.cc | Loading commit data... | |
terminate.cc | Loading commit data... |