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] Rename some static variables in nptl for readability


On 03/15/2013 06:25 AM, Siddhesh Poyarekar wrote:
> Hi,
> 
> These bits were part of my initial patch to set things up for default
> thread attributes patch, but Roland suggested that I break them up
> since they're an unrelated cleanup (the were related earlier since
> their names clashed with the default_attr I intended to share across
> the library, but I'm calling that variable __default_attr now).  So
> here it is - the patch renames some static variables in nptl so that
> they have unique names.  Does not cause any regressions in the
> testsuite.  OK to commit?
> 
> Siddhesh
> 
> 	* pthread_barrier_init.c (default_attr): Rename to
> 	default_barrierattr.
> 	(pthread_barrier_init): Adjust for the rename.
> 	* pthread_mutex_init.c (default_attr): Rename to
> 	default_mutexattr.
> 	(__pthread_mutex_init): Adjust for the rename.
> 	* pthread_rwlock_init.c (default_attr): Rebane to
> 	default_rwlockattr.
> 	(__pthread_rwlock_init): Adjust for the rename.

This looks good to me.

I like it when we name variables with names that make sense.

If you get no objections I'd check it in on Monday.

Cheers,
Carlos.


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