]> git.ipfire.org Git - thirdparty/gcc.git/commit - libstdc++-v3/testsuite/30_threads/thread/id/operators.cc
thread (thread::id): Move definition inside thread.
authorBenjamin Kosnik <bkoz@redhat.com>
Sat, 7 Feb 2009 21:56:55 +0000 (21:56 +0000)
committerBenjamin Kosnik <bkoz@gcc.gnu.org>
Sat, 7 Feb 2009 21:56:55 +0000 (21:56 +0000)
commitd7afcd2b9ba4534fce7ec4d6d31a508af312b928
treeab7a64f83b4f9ff2ad08ff622a70bd0a6957bf87
parent5a7e237c637967eed5edff0a889c643ced174b33
thread (thread::id): Move definition inside thread.

2009-02-06  Benjamin Kosnik  <bkoz@redhat.com>

* include/std/thread (thread::id): Move definition inside thread.
Use native_handle_type. Remove this_thread::get_id friend.
Change __thread_data_ptr to __shared_base_ptr.
(thread::id::id(native_handle_type): Make public. Still explicit.
Use native_handle_type. Change _M_thread_id to _M_thread.
(thread::__thread_data_base): Rename to _Impl_base. Use id, change
_M_thread_handle to _M_id.
(thread::__thread_data): Rename to _Impl.
Fixup for renames.
(thread::_M_make_thread_data): Return derived type.
(thread::hardware_concurrency): Add definition for default case.
(thread::get_id): Now can define inline.
(thread): Change _M_thread_data to _M_data.
(this_thread::get_id): Now can define inline.
* src/thread.cc (__thread_proxy): Rename to
execute_native_thread_routine.
Fixup for other renames.
* testsuite/30_threads/thread/cons/assign_neg.cc: New.
* testsuite/30_threads/thread/cons/copy_neg.cc: New.
* testsuite/30_threads/thread/algorithm: Move to..
* testsuite/30_threads/thread/swap: ...this.
* testsuite/30_threads/thread/member/hardware_concurrency.cc: Add.
* testsuite/30_threads/thread/id/operators.cc: New.

From-SVN: r144007
libstdc++-v3/ChangeLog
libstdc++-v3/include/std/thread
libstdc++-v3/src/thread.cc
libstdc++-v3/testsuite/30_threads/thread/cons/assign_neg.cc [new file with mode: 0644]
libstdc++-v3/testsuite/30_threads/thread/cons/copy_neg.cc [new file with mode: 0644]
libstdc++-v3/testsuite/30_threads/thread/id/operators.cc [new file with mode: 0644]
libstdc++-v3/testsuite/30_threads/thread/member/hardware_concurrency.cc [new file with mode: 0644]
libstdc++-v3/testsuite/30_threads/thread/swap/1.cc [moved from libstdc++-v3/testsuite/30_threads/thread/algorithm/1.cc with 100% similarity]
libstdc++-v3/testsuite/30_threads/thread/swap/2.cc [moved from libstdc++-v3/testsuite/30_threads/thread/algorithm/2.cc with 100% similarity]