[Bug libstdc++/57060] std::this_thread::get_id() == std::thread::id::id() without -pthread
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sun Dec 21 10:17:00 GMT 2014
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()
More information about the Gcc-bugs
mailing list