PR libstdc++/57060 cope with invalid thread IDs
authorJonathan Wakely <jwakely@redhat.com>
Fri, 4 Dec 2015 17:32:40 +0000 (17:32 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Fri, 4 Dec 2015 17:32:40 +0000 (17:32 +0000)
commit755be51d0266bc008def4de484cc9c7803283d69
tree497aba097b51602810d2e63632cc24a664634e0f
parent586cdac8e5af3fff142829e579558f8728e56f81
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.

From-SVN: r231289
libstdc++-v3/ChangeLog
libstdc++-v3/include/std/thread
libstdc++-v3/testsuite/30_threads/this_thread/57060.cc [new file with mode: 0644]