PATCH: Add __PTHREAD_RWLOCK_INT_FLAGS_SHARED

H.J. Lu hjl.tools@gmail.com
Mon May 14 23:40:00 GMT 2012


On Mon, May 14, 2012 at 11:19 AM, Roland McGrath <roland@hack.frob.com> wrote:
>> +#ifndef __PTHREAD_RWLOCK_INT_FLAGS_SHARED
>> +# if __WORDSIZE == 64
>> +#  define __PTHREAD_RWLOCK_INT_FLAGS_SHARED 1
>> +# endif
>> +#endif
>
> This needs a comment explaining what the macro means.
>

I added

/* Define __PTHREAD_RWLOCK_INT_FLAGS_SHARED to 1 if pthread_rwlock_t
   has the shared field.  All 64-bit architectures have the shared field
   in pthread_rwlock_t.  */

Here is the updated patch..  OK to install?

Thanks.

-- 
H.J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libc-x32-pthread.h-1b.patch
Type: application/octet-stream
Size: 1144 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20120514/c806bd24/attachment.obj>


More information about the Libc-alpha mailing list