OSDN Git Service

2009-02-06 Benjamin Kosnik <bkoz@redhat.com>
authorbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 7 Feb 2009 21:56:55 +0000 (21:56 +0000)
committerbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 7 Feb 2009 21:56:55 +0000 (21:56 +0000)
commitda8ba934a8f9b50ad28f1ef0d374e8679ad54161
treeab7a64f83b4f9ff2ad08ff622a70bd0a6957bf87
parenta64bd5e46b5972bfe4834f12bc0e4f4df47aa671
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@144007 138bc75d-0d04-0410-961f-82ee72b054a4
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]