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



The following reply was made to PR misc/42871; it has been noted by GNATS.

From: Emil Hessman <ceh%update.uu.se@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: misc-bug-people%netbsd.org@localhost, gnats-admin%netbsd.org@localhost, 
netbsd-bugs%netbsd.org@localhost
Subject: Re: misc/42871: pthread_create(3): improve wording and add a 
        reference
Date: Tue, 23 Feb 2010 09:40:24 +0100

 On Tue, Feb 23, 2010 at 06:50, Matthew Mondor 
<mm_lists%pulsar-zone.net@localhost> wr=
 ote:
 
 [...]
 
 > =C2=A0Unfortunately, I find "pointed to by attr" (attr is a pointer to a
 > =C2=A0pthread_attr_t object) to the more precise...
 >
 > =C2=A0Or perhaps it'd even be good to specify that the attributes are cop=
 ied
 > =C2=A0by pthread_create(3) such that changing them has no effect on alrea=
 dy
 > =C2=A0created threads like the following (please correct as needed, or
 > =C2=A0suggest other alternatives):
 >
 > =C2=A0"The attributes specified via the pthread_attr_t object, if any, ar=
 e
 > =C2=A0copied for the new thread by pthread_create(3). =C2=A0Thus, if the =
 attributes
 > =C2=A0object is modified after creating a thread, that thread's attribute=
 s
 > =C2=A0are not affected. =C2=A0It is also safe to reuse the same attribute=
 s object
 > =C2=A0to create multiple threads." ?
 
 Much better, clear as crystal.
 
 Cheers,
 -ceh
 


Home | Main Index | Thread Index | Old Index