This is the mail archive of the
mailing list for the newlib project.
Re: pthread.h: Add missing PTHREAD_RWLOCK_INITIALIZER
- From: Joel Sherrill <joel dot sherrill at oarcorp dot com>
- To: Ralf Corsepius <ralf dot corsepius at rtems dot org>
- Cc: "newlib at sourceware dot org" <newlib at sourceware dot org>
- Date: Tue, 22 Jan 2013 15:20:32 -0600
- Subject: Re: pthread.h: Add missing PTHREAD_RWLOCK_INITIALIZER
- References: <50A12FAE.email@example.com> <50A13560.firstname.lastname@example.org> <50A13773.email@example.com> <50A20343.firstname.lastname@example.org>
I finally committed this with a typo fix.
2013-01-22 Joel Sherrill <email@example.com>
* libc/include/pthread.h: Add PTHREAD_RWLOCK_INITIALIZER.
Fix typo on PTHREAD_COJND_INITIALIZER.
On 11/13/2012 02:22 AM, Ralf Corsepius wrote:
On 11/12/2012 06:52 PM, Joel Sherrill wrote:
On 11/12/2012 11:44 AM, Ralf Corsepius wrote:
I realize, I should have been more verbose.
On 11/12/2012 06:19 PM, Joel Sherrill wrote:
Attached is a very simple 1 line patch which adds the
missing constant PTHREAD_RWLOCK_INITIALIZER and
makes it have the same value as the other similar
OK to commit?
And can you explain why adding an accidentally missing constant
that is defined by Open Group gets a simple "No"
This is added in the same style as the other PTHREAD_XXX_INITIALIZER
values and its absence has just been overlooked.
My "no" wasn't directed against adding the initializer #define,
it was directed against the implementation, because I incorrectly
had assumed pthread_rwlock_t to be a pointer.
So, go ahead and apply the patch.
Joel Sherrill, Ph.D. Director of Research& Development
joel.sherrill@OARcorp.com On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35806
Support Available (256) 722-9985