
Anthony Williams wrote:
"vicente.botet" <vicente.botet@wanadoo.fr> writes:
just a question that could clarify my thoughts, can a non joinable thread be interruptible?
No, because you no longer have a handle with which to interrupt it.
I have thought about providing an "interrupt handle" which you can obtain either from a boost::thread object, or by calling boost::this_thread::get_interrupt_handle() or similar, in which case a detached thread would be interruptible.
But why do you invalidate the thread object after a call to detach ? Why is it impossible to refer to a detached thread ? (And, for that matter, why can't a default-constructed thread not simply refer to the 'main' thread ?) Why do we have unreferrable (sp?) threads of execution ? Thanks, Stefan -- ...ich hab' noch einen Koffer in Berlin...