Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2008-05-29 15:42:04


on Wed May 28 2008, Anthony Williams <anthony.ajw-AT-gmail.com> wrote:

> David Abrahams <dave_at_[hidden]> writes:
>
>> Seems to me that if we have "detach()," it we should be asking whether a
>> thread is "attached()," rather than "joinable()." Our documentation
>> says "if *this refers to a thread of execution..." all over it, which
>> would seem to indicate that joinable() is an important question even
>> when you're not about to join().
>>
>> Thoughts?
>
> "attached()" seems a good name to me. Just about every member function
> of boost::thread requires that the thread is joinable() for it to have
> any meaning.
>
> I've used the same wording for boost::thread::id as well, but clearly
> an ID is not joinable(). OTOH, a thread::id could be attached(),
> meaning it actually represents a thread rather than "not-a-thread".
>
> Are you going to be at Sophia-Antipolis? It might be worth raising the
> same issue wrt std::thread.

I won't be there this time :(

-- 
Dave Abrahams
BoostPro Computing
http://www.boostpro.com

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