[Bug libstdc++/57060] std::this_thread::get_id() == std::thread::id::id() without -pthread
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57060 Richard Biener changed: What|Removed |Added Target Milestone|5.3 |5.4 --- Comment #4 from Richard Biener --- GCC 5.3 is being released, adjusting target milestone.
[Bug libstdc++/57060] std::this_thread::get_id() == std::thread::id::id() without -pthread
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57060 Jonathan Wakely changed: What|Removed |Added Target Milestone|5.4 |6.0
[Bug libstdc++/57060] std::this_thread::get_id() == std::thread::id::id() without -pthread
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57060 --- Comment #5 from Jonathan Wakely --- Author: redi Date: Fri Dec 4 17:32:40 2015 New Revision: 231289 URL: https://gcc.gnu.org/viewcvs?rev=231289=gcc=rev Log: 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. Added: trunk/libstdc++-v3/testsuite/30_threads/this_thread/57060.cc Modified: trunk/libstdc++-v3/ChangeLog trunk/libstdc++-v3/include/std/thread
[Bug libstdc++/57060] std::this_thread::get_id() == std::thread::id::id() without -pthread
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57060 Jonathan Wakely changed: What|Removed |Added Target||*-*-*gnu* Status|ASSIGNED|RESOLVED Resolution|--- |FIXED --- Comment #6 from Jonathan Wakely --- Fixed for gcc-6.
[Bug libstdc++/57060] std::this_thread::get_id() == std::thread::id::id() without -pthread
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57060 Richard Biener rguenth at gcc dot gnu.org changed: What|Removed |Added Target Milestone|5.2 |5.3 --- Comment #3 from Richard Biener rguenth at gcc dot gnu.org --- GCC 5.2 is being released, adjusting target milestone to 5.3.
[Bug libstdc++/57060] std::this_thread::get_id() == std::thread::id::id() without -pthread
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57060 Jakub Jelinek jakub at gcc dot gnu.org changed: What|Removed |Added Target Milestone|5.0 |5.2 --- Comment #2 from Jakub Jelinek jakub at gcc dot gnu.org --- GCC 5.1 has been released.
[Bug libstdc++/57060] std::this_thread::get_id() == std::thread::id::id() without -pthread
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57060 Jonathan Wakely redi at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Last reconfirmed||2014-12-21 Target Milestone|--- |5.0 Ever confirmed|0 |1 --- Comment #1 from Jonathan Wakely redi at gcc dot gnu.org --- Another option would be to return a non-zero id when !__gthread_active_p() instead of calling pthread_self()