[Bug libstdc++/89591] How can thread.joinable() reliably work if the pthread_t id is not initialized?

2019-03-14 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89591 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug libstdc++/89591] How can thread.joinable() reliably work if the pthread_t id is not initialized?

2019-03-14 Thread bique.alexandre at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89591 --- Comment #2 from Alexandre Bique --- > It's initialized here: > >> id() noexcept : _M_thread() { } I did not know that it would initialize it to 0. In that case let's hope that pthread_t == "value-initialized" will never happen. Thank you

[Bug libstdc++/89591] How can thread.joinable() reliably work if the pthread_t id is not initialized?

2019-03-14 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89591 --- Comment #1 from Jonathan Wakely --- (In reply to Alexandre Bique from comment #0) > Hi, > > I've been reading the header and I've found that the thread id of > std::thread is not initialized, I hope that I'm wrong and I missed something. I