gcc/libstdc++-v3/testsuite/30_threads
Jonathan Wakely 4880236e3f re PR libstdc++/49668 ([C++0x] std::thread does not forward its args as rvalues)
2011-07-09  Jonathan Wakely  <jwakely.gcc@gmail.com>

	PR libstdc++/49668
	* include/std/functional (__bind_simple): Define.
	* include/std/future (_Task_setter): Parameterize by type of result
	pointer instead of state object.
	(_S_task_setter): Type deduction helper.
	(_Task_state): Use _S_task_setter and __bind_simple.
	(_Deferred_state, _Async_state): Store call wrapper directly not as
	std::function. Use _S_task_setter and __bind_simple.
	(_S_make_deferred_state, _S_make_async_state): Type deduction helpers.
	(async): Use new functions and __bind_simple.
	* include/std/mutex (call_once): Use __bind_simple.
	* include/std/thread (thread): Likewise. Remove unused headers.
	* src/thread.cc: Add header.
	* testsuite/30_threads/async/49668.cc: New.
	* testsuite/30_threads/call_once/49668.cc: New.
	* testsuite/30_threads/thread/cons/49668.cc: New.
	* testsuite/30_threads/thread/cons/moveable.cc: Remove unused bool.

From-SVN: r176073
2011-07-09 11:13:01 +01:00
..
async re PR libstdc++/49668 ([C++0x] std::thread does not forward its args as rvalues) 2011-07-09 11:13:01 +01:00
call_once re PR libstdc++/49668 ([C++0x] std::thread does not forward its args as rvalues) 2011-07-09 11:13:01 +01:00
condition_variable
condition_variable_any
future future (future::share): Add. 2011-03-25 23:16:09 +00:00
headers *: Use headername alias to associate private includes to public includes. 2010-12-19 09:21:16 +00:00
lock mutex (try_lock, [...]): Fix. 2010-12-04 02:37:46 +00:00
lock_guard
mutex
once_flag/cons
packaged_task re PR libstdc++/49668 ([C++0x] std::thread does not forward its args as rvalues) 2011-07-09 11:13:01 +01:00
promise uses_allocator.cc: New. 2011-06-11 12:58:18 +01:00
recursive_mutex
recursive_timed_mutex
shared_future re PR libstdc++/46951 (30_threads/future/members/45133.cc failed) 2010-12-15 02:07:07 +00:00
this_thread
thread re PR libstdc++/49668 ([C++0x] std::thread does not forward its args as rvalues) 2011-07-09 11:13:01 +01:00
timed_mutex
try_lock mutex (try_lock, [...]): Fix. 2010-12-04 02:37:46 +00:00
unique_lock