|
Boost : |
From: Peter Dimov (pdimov_at_[hidden])
Date: 2001-08-24 14:41:06
From: "William Kempf" <williamkempf_at_[hidden]>
> >For the Boost.Threads-based implementation, yes, adopting threads would
be
> >problematic. A possible issue that I can see is "double adoption."
>
> The issue isn't double adoption (in fact, that's trivial to prevent). The
> issue is that you don't know if an adopted thread is joinable or not. You
> can't implement "join" semantics because you don't know if you can join
the
> thread or not (in fact, you are very unlikely to be able to). This is an
> issue for both thread_ref as well as thread designs.
Could you please explain why?
-- Peter Dimov Multi Media Ltd.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk