On Wed, 23 Mar 2005 20:49:02 +0200, Peter Dimov
Ben Hutchings wrote:
This seems somewhat reasonable. However, currently there are two significantly different reasons for thread objects to be non-joinable - either the thread is default-constructed and is just an ID holder or the thread has already been joined. These should be distinguishable. I'm convinced that there should be entirely separate types for thread IDs and thread starter/joiner objects and don't understand why they were given the same type.
For various historical reasons, most of them no longer relevant. :-)
FWIW, my position on the issue has always been that all (Boost) threads should be joinable.
Even if the underlying implementation thread is not (e.g. it has been pthread_detach'd or the equivalent)? Or are you suggesting that a join on a non-implementation-joinable thread should just succeed silently? -- Caleb Epstein caleb dot epstein at gmail dot com