gcc/libstdc++-v3/testsuite/30_threads
Jonathan Wakely cbdab9c897 thread: Remove unused headers.
2009-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>

	* include/std/thread: Remove unused headers.
	(__thread_data_base): Remove unused mutex and base.
	(thread::~thread): Only detach if joinable.
	(thread::joinable): Test if thread data ptr is empty.
	(thread::_M_thread_data_mutex): Remove.
	(thread::_M_get_thread_data): Remove.
	(thread::_M_make_thread_data): Remove overload, use make_shared.
	(thread:🆔:id): Make constructor explicit.
	* src/thread.cc (thread::join,thread::detach): Throw if not joinable.
	(thread::_M_start_thread): Break shared_ptr cycle on error.
	(__thread_proxy): Use shared_ptr swap instead of copy and reset.
	* testsuite/30_threads/thread/member/4.cc: New.
	* testsuite/30_threads/thread/member/5.cc: New.

From-SVN: r143772
2009-01-29 23:24:05 +00:00
..
call_once condition_variable: Use new deleted ctors. 2008-09-03 17:46:09 +00:00
condition_variable testsuite_common_types.h (has_trivial_cons_dtor): New. 2009-01-29 00:25:17 +00:00
condition_variable_any/cons chrono: If _GLIBCXX_USE_MONOTONIC_CLOCK is defined... 2008-09-23 17:34:29 +00:00
headers thread: New. 2008-09-13 00:32:37 +00:00
lock_guard/requirements condition_variable: Use new deleted ctors. 2008-09-03 17:46:09 +00:00
mutex testsuite_common_types.h (has_trivial_cons_dtor): New. 2009-01-29 00:25:17 +00:00
recursive_mutex testsuite_common_types.h (has_trivial_cons_dtor): New. 2009-01-29 00:25:17 +00:00
recursive_timed_mutex mutex (try_lock): Implement generic try_lock. 2008-09-28 09:05:07 +00:00
thread thread: Remove unused headers. 2009-01-29 23:24:05 +00:00
timed_mutex testsuite_common_types.h (has_trivial_cons_dtor): New. 2009-01-29 00:25:17 +00:00
try_lock mutex (try_lock): Implement generic try_lock. 2008-09-28 09:05:07 +00:00
unique_lock system_error (is_error_code_enum): Specialize for errc. 2008-10-22 15:27:44 +00:00