Boost logo

Boost :

From: Howard Hinnant (hinnant_at_[hidden])
Date: 2008-05-28 13:23:54


On May 28, 2008, at 12:05 PM, Johan Torp wrote:

>
>
> Anthony Williams-4 wrote:
>>
>>>> t.has_thread() is shorter.
>>>>
>>>
>>> I find these really confusing since the word 'thread' appears in two
>>> very distinct meanings here. (first as the type of 't', then as
>>> "thread
>>> of execution".)
>>
>> Yes, I did worry about that. Any more ideas?
>>
>
> represents_execution, has_handle, has_os_handle, is_empty.
> I think attached/is_attached is better though.

I agree with Stephan that !attached() implies that the thread was
detached(), which is inaccurate.

-Howard


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