diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2019-05-14 13:01:15 +0100 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2019-05-14 13:01:15 +0100 |
commit | 8db7a05fd73be5df9195a3697248084d4a5b0ee6 (patch) | |
tree | 77beac2f9222970cb655b89af0af57d715b2a46b /libgo/go | |
parent | db33efde17932fb29fd08f19eaeef0e527adb065 (diff) | |
download | gcc-8db7a05fd73be5df9195a3697248084d4a5b0ee6.zip gcc-8db7a05fd73be5df9195a3697248084d4a5b0ee6.tar.gz gcc-8db7a05fd73be5df9195a3697248084d4a5b0ee6.tar.bz2 |
PR libstdc++/69724 avoid temporary in std::thread construction
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
Diffstat (limited to 'libgo/go')
0 files changed, 0 insertions, 0 deletions