gcc/libstdc++-v3/testsuite
Jonathan Wakely 9db7c9316e Define *_at_thread_exit() functions.
* config/abi/pre/gnu.ver: Add new exports.
	* include/std/condition_variable (notify_all_at_thread_exit): Declare.
	(__at_thread_exit_elt): New base class.
	* include/std/future: Add comments documenting the implementation.
	(__future_base::_State_baseV2::_State_baseV2()): Use brace-or-equal
	initializers and define constructor as defaulted.
	(__future_base::_State_baseV2::_M_ready): Replace member function
	with member variable.
	(__future_base::_State_baseV2::_M_set_result): Set _M_ready.
	(__future_base::_State_baseV2::_M_set_delayed_result): Define.
	(__future_base::_State_baseV2::_M_break_promise): Set _M_ready.
	(__future_base::_State_baseV2::_Make_ready): New helper class.
	(__future_base::_Deferred_state::_M_has_deferred): Remove requirement
	for caller to own mutex.
	(__future_base::_Async_state_impl::~_Async_state_impl): Call join
	directly.
	(__future_base::_Task_state_base::_M_run): Take arguments by
	reference.
	(__future_base::_Task_state_base::_M_run_delayed): Declare new pure
	virtual function.
	(__future_base::_Task_state::_M_run_delayed): Define override.
	(promise::set_value_at_thread_exit): Define.
	(promise::set_exception_at_thread_exit): Define.
	(packaged_task::make_ready_at_thread_exit): Define.
	* src/c++11/condition_variable.cc (notify_all_at_thread_exit): Define.
	* src/c++11/future.cc
	(__future_base::_State_baseV2::_Make_ready::_M_set): Define.
	* testsuite/30_threads/condition_variable/members/3.cc: New.
	* testsuite/30_threads/packaged_task/members/at_thread_exit.cc: New.
	* testsuite/30_threads/promise/members/at_thread_exit.cc: New.

From-SVN: r218255
2014-12-02 01:51:25 +00:00
..
17_intro freestanding.cc: Prefer -std=gnu++11. 2014-10-15 18:31:10 +00:00
18_support C++11 explicitly forbids macros for bool, true and false. 2014-10-24 21:56:40 +01:00
19_diagnostics freestanding.cc: Prefer -std=gnu++11. 2014-10-15 18:31:10 +00:00
20_util re PR libstdc++/63840 (std::function copy constructor deletes an uninitialized pointer if new fails) 2014-12-01 13:49:20 +00:00
21_strings shrink_to_fit.cc: Prefer -std=gnu++11. 2014-10-15 19:56:52 +00:00
22_locale Makefile.am: Move ctype.cc, ctype_configure_char.cc and ctype_members.cc to ... 2014-10-20 13:34:10 +01:00
23_containers Fix std::deque move construction with non-equal allocators. 2014-11-10 22:44:07 +00:00
24_iterators shrink_to_fit.cc: Prefer -std=gnu++11. 2014-10-15 19:56:52 +00:00
25_algorithms re PR libstdc++/61107 (stl_algo.h: std::__inplace_stable_partition() doesn't process the whole data range) 2014-11-11 21:21:10 +00:00
26_numerics shrink_to_fit.cc: Prefer -std=gnu++11. 2014-10-15 19:56:52 +00:00
27_io XFAIL 27_io/basic_ostream/inserters_arithmetic/char/hexfloat.cc on Solaris (PR libstd++/64054) 2014-11-26 13:22:27 +00:00
28_regex re PR libstdc++/63920 (Any regular expression should not match an empty sequence if match_not_null is specified) 2014-11-25 05:43:04 +00:00
29_atomics atomic_base.h: Avoid including <stdbool.h>. 2014-10-24 12:54:43 +00:00
30_threads Define *_at_thread_exit() functions. 2014-12-02 01:51:25 +00:00
abi Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
backward Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
config Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
data make_graph_test_infos.xml: Edit. 2011-08-15 00:51:06 +00:00
decimal Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
experimental 1.cc: Remove unused header. 2014-11-12 00:34:19 +00:00
ext Add -Wno-deprecated to dg-options. 2014-11-12 10:32:17 +00:00
lib Fix race in libstdc++ testsuite 2014-10-19 21:07:29 +00:00
libstdc++-abi Makefile.in (dg_target_exps): Remove. 2014-09-15 20:23:36 +02:00
libstdc++-dg Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
libstdc++-prettyprinters Ensure single 'UNSUPPORTED: prettyprinters.exp' message 2014-11-25 20:30:20 +00:00
libstdc++-xmethods associative-containers.cc: Add new file missed from earlier commit. 2014-11-11 22:10:21 +00:00
performance libstdc++.exp: Prefer -std=gnu++11. 2014-10-16 08:09:09 +00:00
tr1 re PR libstdc++/63840 (std::function copy constructor deletes an uninitialized pointer if new fails) 2014-12-01 13:49:20 +00:00
tr2 libstdc++.exp: Prefer -std=gnu++11. 2014-10-16 08:09:09 +00:00
util re PR libstdc++/43622 (Incomplete C++ library support for __float128) 2014-11-18 20:20:53 +00:00
Makefile.am Makefile.in (check-parallel-%): Add @. 2014-09-22 12:33:35 -04:00
Makefile.in * testsuite/Makefile.in: Regenerate. 2014-10-10 17:14:59 +01:00