
8 Dec
2004
8 Dec
'04
6:27 p.m.
Hi. I believe that there is a bug in thread::thread() under Windows. The code uses GetCurrentThread() WinAPI function, but this is not enough. If you'll try to create such a thread object, and pass its reference to another thread which will join it - something like [...]
A default-constructed thread is documented as being non-joinable:
Ok, I can't join it. So what can I do with it?