Boost logo

Boost :

From: Jeremy Siek (jsiek_at_[hidden])
Date: 2001-06-27 16:48:15


On Wed, 27 Jun 2001 williamkempf_at_[hidden] wrote:
> Almost. A detached() thread won't necessarilly last longer than the
> parent thread. We just don't care about its lifetime. If
> the "parent" thread is the "main" thread, the "child" thread simply
> can't outlive its "parent".

Right, that's why I used the word "may" ;)

> That depends on your definition of detached. It's quite possible
> that I'll want to manage the thread's priority even if I don't care
> to manage its lifetime, for instance.

Sure, I'm ok with returning a thread id from create_detached_thread() so
long as that id type can't be used with join() and cancel().

Cheers,
Jeremy

----------------------------------------------------------------------
 Jeremy Siek www: http://www.lsc.nd.edu/~jsiek/
 Ph.D. Candidate, IU B'ton email: jsiek_at_[hidden]
 Summer Manager, AT&T Research phone: (973) 360-8185
----------------------------------------------------------------------


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk