[Glibc-bsd-commits] r4581 - trunk/glibc-ports/kfreebsd/fbtl
Petr Salinger
ps-guest at alioth.debian.org
Mon Jul 8 12:43:01 UTC 2013
Author: ps-guest
Date: 2013-06-23 07:46:41 +0000 (Sun, 23 Jun 2013)
New Revision: 4581
Modified:
trunk/glibc-ports/kfreebsd/fbtl/pthread_once.c
Log:
sync pthread_once.c with current sparc version
Modified: trunk/glibc-ports/kfreebsd/fbtl/pthread_once.c
===================================================================
--- trunk/glibc-ports/kfreebsd/fbtl/pthread_once.c 2013-06-22 22:57:56 UTC (rev 4580)
+++ trunk/glibc-ports/kfreebsd/fbtl/pthread_once.c 2013-06-23 07:46:41 UTC (rev 4581)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2003-2012 Free Software Foundation, Inc.
+/* Copyright (C) 2003-2013 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Jakub Jelinek <jakub at redhat.com>, 2003.
@@ -13,7 +13,7 @@
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
+ License along with the GNU C Library; if not, see
<http://www.gnu.org/licenses/>. */
#include "pthreadP.h"
@@ -29,7 +29,7 @@
pthread_once_t *once_control = (pthread_once_t *) arg;
*once_control = 0;
- lll_private_futex_wake (once_control, INT_MAX);
+ lll_futex_wake (once_control, INT_MAX, LLL_PRIVATE);
}
@@ -64,7 +64,7 @@
if (((oldval ^ newval) & -4) == 0)
{
/* Same generation, some other thread was faster. Wait. */
- lll_private_futex_wait (once_control, newval);
+ lll_futex_wait (once_control, newval, LLL_PRIVATE);
continue;
}
}
@@ -83,7 +83,7 @@
atomic_increment (once_control);
/* Wake up all other threads. */
- lll_private_futex_wake (once_control, INT_MAX);
+ lll_futex_wake (once_control, INT_MAX, LLL_PRIVATE);
break;
}
More information about the Glibc-bsd-commits
mailing list