NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: misc/42871: pthread_create(3): improve wording and add a reference
On Tue, Feb 23, 2010 at 06:50, Matthew Mondor
<mm_lists%pulsar-zone.net@localhost> wrote:
[...]
> ÂUnfortunately, I find "pointed to by attr" (attr is a pointer to a
> Âpthread_attr_t object) to the more precise...
>
> ÂOr perhaps it'd even be good to specify that the attributes are copied
> Âby pthread_create(3) such that changing them has no effect on already
> Âcreated threads like the following (please correct as needed, or
> Âsuggest other alternatives):
>
> Â"The attributes specified via the pthread_attr_t object, if any, are
> Âcopied for the new thread by pthread_create(3). ÂThus, if the attributes
> Âobject is modified after creating a thread, that thread's attributes
> Âare not affected. ÂIt is also safe to reuse the same attributes object
> Âto create multiple threads." ?
Much better, clear as crystal.
Cheers,
-ceh
Home |
Main Index |
Thread Index |
Old Index