PR libstdc++/57060 cope with invalid thread IDs
commitf65ece8abe023cb769e5106e67f0d13f5b52c1a5
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 4 Dec 2015 17:32:40 +0000 (4 17:32 +0000)
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 4 Dec 2015 17:32:40 +0000 (4 17:32 +0000)
tree497aba097b51602810d2e63632cc24a664634e0f
parenta85069b5e3ae2980f1d55435b46b12638e645857
PR libstdc++/57060 cope with invalid thread IDs

PR libstdc++/57060
* include/std/thread (operator==(thread::id, thread::id)): Do not use
__gthread_equal.
(operator<(thread::id, thread::id)): Add comment.
(this_thread::get_id()): Do not use __gthread_self for single-threaded
programs using glibc.
* testsuite/30_threads/this_thread/57060.cc: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@231289 138bc75d-0d04-0410-961f-82ee72b054a4
libstdc++-v3/ChangeLog
libstdc++-v3/include/std/thread
libstdc++-v3/testsuite/30_threads/this_thread/57060.cc [new file with mode: 0644]