[PATCH] pthread_once: Clean up constants.

Torvald Riegel triegel@redhat.com
Sun Oct 19 20:46:00 GMT 2014


On Fri, 2013-10-11 at 23:27 +0300, Torvald Riegel wrote:
> This is part c) of
> https://sourceware.org/bugzilla/show_bug.cgi?id=15215: Replace magic
> numbers with name constants.  Also updates the documentation.
> Applies on top of the pthread_once unification patch I sent recently.
> 
> OK?

This slipped through.  This is the last part of BZ 15215 (together witht
the removal of the x86 custom variants that slipped through as well).
Attached is an updated patch, which I'll commit after two days if nobody
objects.

2014-10-20  Torvald Riegel  <triegel@redhat.com>

	[BZ #15215]
	* nptl/pthreadP.h (__PTHREAD_ONCE_INPROGRESS, __PTHREAD_ONCE_DONE,
	__PTHREAD_ONCE_FORK_GEN_INCR): New.
	* sysdeps/nptl/fork.c (__libc_fork): Use them.
	* nptl/pthread_once.c (__pthread_once): Likewise.
	Update comments.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pthread_once-constants.patch
Type: text/x-patch
Size: 4366 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20141019/2c26e6ea/attachment.bin>


More information about the Libc-alpha mailing list