Boost logo

Boost :

Subject: Re: [boost] [thread] feature request priority
From: Vicente J. Botet Escriba (vicente.botet_at_[hidden])
Date: 2012-01-03 15:57:14


Le 03/01/12 21:09, Stewart, Robert a écrit :
> Vicente Botet wrote:
>> Stewart, Robert wrote
>>
>>> 4. I wonder if a thread should own its attributes such that
>>> clients can query for them later:
>>>
>>> thread_attributes const&
>>> thread::attributes() const;
>> The user can always associate the passed attributes to the
>> thread either passing them as parameters or/and setting them as
>> a thread specific pointer.
> Yes and no. Consider thread_group: you can't easily associate the attributes with a thread, if you have access to a thread_group and not the code that called add_thread().
Maybe it would be better to provide some generic algorithms that work on
generic containers.
> BTW, does the patch address creating threads, with attributes, via thread_group::create_thread()?
No, the patch doesn't address thread group at all. The user could always
create a thread and add it to the thread_group.

Vicente


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