gcc/libstdc++-v3/include/std
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
..
algorithm Add parallel mode. 2007-09-11 22:32:51 +00:00
array tuple: Ifndef __GXX_EXPERIMENTAL_CXX0X__ just error out. 2008-05-26 02:19:57 +00:00
bitset re PR libstdc++/38080 (dead links in libstdc++ headers) 2008-12-02 04:55:54 +00:00
c++0x_warning.h acinclude.m4 (GLIBCXX_ENABLE_CHEADERS): Add c_global. 2007-03-04 22:59:49 +00:00
chrono chrono: If _GLIBCXX_USE_MONOTONIC_CLOCK is defined... 2008-09-23 17:34:29 +00:00
complex user.cfg.in: Add complex, ratio, intializer_list. 2008-07-16 07:01:23 +00:00
condition_variable chrono: If _GLIBCXX_USE_MONOTONIC_CLOCK is defined... 2008-09-23 17:34:29 +00:00
deque acinclude.m4 (GLIBCXX_ENABLE_CHEADERS): Add c_global. 2007-03-04 22:59:49 +00:00
forward_list forward_list: New. 2008-10-15 16:48:13 +00:00
fstream re PR libstdc++/38080 (dead links in libstdc++ headers) 2008-12-02 04:55:54 +00:00
functional functional_hash.h: Do not include ext/numeric_traits.h. 2007-11-20 14:06:53 +00:00
iomanip acinclude.m4 (GLIBCXX_ENABLE_CHEADERS): Add c_global. 2007-03-04 22:59:49 +00:00
ios PR libstdc++/28080 (final) 2007-03-11 12:03:34 +00:00
iosfwd re PR libstdc++/38080 (dead links in libstdc++ headers) 2008-12-02 04:55:54 +00:00
iostream re PR libstdc++/38080 (dead links in libstdc++ headers) 2008-12-02 04:55:54 +00:00
istream 2009-01-03 Paolo Carlini <paolo.carlini@oracle.com> 2009-01-03 22:32:08 +00:00
iterator acinclude.m4 (GLIBCXX_ENABLE_CHEADERS): Add c_global. 2007-03-04 22:59:49 +00:00
limits PR c++/33979 (partial) 2008-05-20 18:11:34 +00:00
list acinclude.m4 (GLIBCXX_ENABLE_CHEADERS): Add c_global. 2007-03-04 22:59:49 +00:00
locale locale_facets.h (class collate, [...]): Move... 2007-04-24 18:57:12 +00:00
map acinclude.m4 (GLIBCXX_ENABLE_CHEADERS): Add c_global. 2007-03-04 22:59:49 +00:00
memory re PR libstdc++/36962 ([C++0x] Add constructors / assignment operators from unique_ptr to shared_ptr) 2008-09-04 23:33:10 +01:00
mutex re PR libstdc++/36801 (config/cpu/generic/atomicity_mutex/atomicity.h incorrectly relies on global constructor ordering) 2009-01-08 03:14:24 +00:00
numeric Add parallel mode. 2007-09-11 22:32:51 +00:00
ostream 2009-01-03 Paolo Carlini <paolo.carlini@oracle.com> 2009-01-03 22:32:08 +00:00
queue acinclude.m4 (GLIBCXX_ENABLE_CHEADERS): Add c_global. 2007-03-04 22:59:49 +00:00
random tuple: Ifndef __GXX_EXPERIMENTAL_CXX0X__ just error out. 2008-05-26 02:19:57 +00:00
ratio user.cfg.in: Add complex, ratio, intializer_list. 2008-07-16 07:01:23 +00:00
regex re PR testsuite/37149 (27_io/basic_ostream/inserters_other/char/error_code.cc) 2008-08-18 17:48:15 +00:00
set acinclude.m4 (GLIBCXX_ENABLE_CHEADERS): Add c_global. 2007-03-04 22:59:49 +00:00
sstream re PR libstdc++/38080 (dead links in libstdc++ headers) 2008-12-02 04:55:54 +00:00
stack acinclude.m4 (GLIBCXX_ENABLE_CHEADERS): Add c_global. 2007-03-04 22:59:49 +00:00
stdexcept auto_ptr.h: Fix comment typos. 2008-01-31 18:44:55 +00:00
streambuf re PR libstdc++/38080 (dead links in libstdc++ headers) 2008-12-02 04:55:54 +00:00
string Add parallel mode. 2007-09-11 22:32:51 +00:00
system_error system_error (is_error_code_enum): Specialize for errc. 2008-10-22 15:27:44 +00:00
thread thread: Remove unused headers. 2009-01-29 23:24:05 +00:00
tuple tuple (tuple<>::swap): Implement swap for tuple as per DR 522 [Ready]. 2008-10-01 22:04:02 +00:00
type_traits type_traits (__make_unsigned_selector<>): Consider enums of size smaller than short. 2008-09-01 23:24:09 +00:00
unordered_map Add initializer_list support as per N2679. 2008-07-21 15:40:39 -04:00
unordered_set Add initializer_list support as per N2679. 2008-07-21 15:40:39 -04:00
utility utility: Include <initializer_list>, per the current WP. 2008-07-29 17:06:24 +00:00
valarray Add initializer_list support as per N2679. 2008-07-21 15:40:39 -04:00
vector acinclude.m4 (GLIBCXX_ENABLE_CHEADERS): Add c_global. 2007-03-04 22:59:49 +00:00