[PATCH] pthread_once: Clean up constants.

Torvald Riegel triegel@redhat.com
Fri Oct 11 20:39:00 GMT 2013


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?

2013-10-11  Torvald Riegel  <triegel@redhat.com>

	[BZ #15215]
	* pthreadP.h (__PTHREAD_ONCE_INPROGRESS, __PTHREAD_ONCE_DONE,
	__PTHREAD_ONCE_FORK_GEN_INCR): New.
	* sysdeps/unix/sysv/linux/fork.c (__libc_fork): Use them.
	* sysdeps/unix/sysv/linux/pthread_once.c (__pthread_once): Likewise.
	Update comments.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: pthread_once-cleanup.patch
Type: text/x-patch
Size: 4541 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20131011/56feee83/attachment.bin>


More information about the Libc-alpha mailing list