This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH: Add __PTHREAD_RWLOCK_INT_FLAGS_SHARED


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.

Attachment: libc-x32-pthread.h-1b.patch
Description: Binary data


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]