gcc/libstdc++-v3/testsuite/30_threads
Jonathan Wakely 8db7a05fd7 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
2019-05-14 13:01:15 +01:00
..
async Fix tests that fail in C++2a mode 2019-01-29 00:47:32 +00:00
call_once Update copyright years. 2019-01-01 13:31:55 +01:00
condition_variable Update copyright years. 2019-01-01 13:31:55 +01:00
condition_variable_any Update copyright years. 2019-01-01 13:31:55 +01:00
future Update copyright years. 2019-01-01 13:31:55 +01:00
headers Update copyright years. 2019-01-01 13:31:55 +01:00
lock Update copyright years. 2019-01-01 13:31:55 +01:00
lock_guard Update copyright years. 2019-01-01 13:31:55 +01:00
mutex Update copyright years. 2019-01-01 13:31:55 +01:00
once_flag/cons Update copyright years. 2019-01-01 13:31:55 +01:00
packaged_task Update copyright years. 2019-01-01 13:31:55 +01:00
promise Update copyright years. 2019-01-01 13:31:55 +01:00
recursive_mutex Update copyright years. 2019-01-01 13:31:55 +01:00
recursive_timed_mutex Update copyright years. 2019-01-01 13:31:55 +01:00
scoped_lock Update copyright years. 2019-01-01 13:31:55 +01:00
shared_future Update copyright years. 2019-01-01 13:31:55 +01:00
shared_lock Update copyright years. 2019-01-01 13:31:55 +01:00
shared_mutex Update copyright years. 2019-01-01 13:31:55 +01:00
shared_timed_mutex Update copyright years. 2019-01-01 13:31:55 +01:00
this_thread Update copyright years. 2019-01-01 13:31:55 +01:00
thread PR libstdc++/69724 avoid temporary in std::thread construction 2019-05-14 13:01:15 +01:00
timed_mutex Update copyright years. 2019-01-01 13:31:55 +01:00
try_lock Update copyright years. 2019-01-01 13:31:55 +01:00
unique_lock Update copyright years. 2019-01-01 13:31:55 +01:00