about summary refs log tree commit diff
path: root/nptl
diff options
context:
space:
mode:
authorThomas Schwinge <thomas@schwinge.name>2012-05-10 14:50:14 -0700
committerRoland McGrath <roland@hack.frob.com>2012-05-10 15:57:24 -0700
commitbe971a2b1c7828d94c41edd5cd22c1d9dcef1b6e (patch)
tree6b30a52fdbc036f34167cb1cbf1236a0e792d022 /nptl
parent37233df9d1fa7a1a6ff3a72ce4f642b1a96de9ca (diff)
downloadglibc-be971a2b1c7828d94c41edd5cd22c1d9dcef1b6e.tar.gz
glibc-be971a2b1c7828d94c41edd5cd22c1d9dcef1b6e.tar.xz
glibc-be971a2b1c7828d94c41edd5cd22c1d9dcef1b6e.zip
Hurd: libc_once_get
Diffstat (limited to 'nptl')
-rw-r--r--nptl/ChangeLog5
-rw-r--r--nptl/sysdeps/pthread/bits/libc-lockP.h2
2 files changed, 7 insertions, 0 deletions
diff --git a/nptl/ChangeLog b/nptl/ChangeLog
index 7e17ca010c..905a6beb64 100644
--- a/nptl/ChangeLog
+++ b/nptl/ChangeLog
@@ -1,3 +1,8 @@
+2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
+
+	[BZ #3748]
+	* sysdeps/pthread/bits/libc-lockP.h (__libc_once_get): New macro.
+
 2012-05-09  Chung-Lin Tang  <cltang@codesourcery.com>
 
 	* sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S
diff --git a/nptl/sysdeps/pthread/bits/libc-lockP.h b/nptl/sysdeps/pthread/bits/libc-lockP.h
index d08fb9db3c..0ebac917d7 100644
--- a/nptl/sysdeps/pthread/bits/libc-lockP.h
+++ b/nptl/sysdeps/pthread/bits/libc-lockP.h
@@ -257,6 +257,8 @@ typedef pthread_key_t __libc_key_t;
     }									      \
   } while (0)
 
+/* Get once control variable.  */
+#define __libc_once_get(ONCE_CONTROL)	((ONCE_CONTROL) != PTHREAD_ONCE_INIT)
 
 /* Note that for I/O cleanup handling we are using the old-style
    cancel handling.  It does not have to be integrated with C++ snce