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: Matthew Mondor <mm_lists%pulsar-zone.net@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: misc/42871: pthread_create(3): improve wording and add a
 reference
Date: Tue, 23 Feb 2010 00:45:20 -0500

 On Tue, 23 Feb 2010 05:20:00 +0000 (UTC)
 ceh%update.uu.se@localhost wrote:
 
 > "If the attribute object pointed to by attr are modified later, the thread's 
 > attributes are not affected." 
 > 
 > ... to: 
 > 
 > "If the attributes specified by attr are modified later, the thread's 
 > attributes are not affected."
 
 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." ?
 
 Thanks,
 -- 
 Matt
 


Home | Main Index | Thread Index | Old Index