
Anthony Williams wrote:
Stefan Seefeld <seefeld@sympatico.ca> writes:
Anthony Williams wrote:
OK. t.joinable() /really/ means t represents a thread of execution.
Out of curiosity: Why do you consider a detached thread not to be a "thread of execution" ?
It is a thread of execution, it's just that no thread object can represent a detached thread.
thread t(task); t.detach(); assert(t.joinable() == false); t is now not joinable any more. But I find it confusing that "t does not refer to a thread of execution", even though I understand that this is not because the thread of execution has ceased to exist, but because t has been reset not to refer to it any longer.
Yes, I did worry about that. Any more ideas?
I still think 'joinable()' is the best name (so far). Stefan -- ...ich hab' noch einen Koffer in Berlin...