]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Add pthread_equal inline function.
authorUlrich Drepper <drepper@redhat.com>
Sun, 4 Jun 2006 23:59:07 +0000 (23:59 +0000)
committerUlrich Drepper <drepper@redhat.com>
Sun, 4 Jun 2006 23:59:07 +0000 (23:59 +0000)
2006-06-04  Ulrich Drepper  <drepper@redhat.com>

* sysdeps/pthread/pthread.h: Add pthread_equal inline version.

* sysdeps/unix/sysv/linux/fork.h: Mark __fork_handlers as hidden.

nptl/ChangeLog
nptl/sysdeps/pthread/pthread.h

index 2dd28380371745e6c8b000c08bc32632eaa376fd..907c1b910a49be409abc8e47c7a16d65edb0792b 100644 (file)
@@ -1,6 +1,10 @@
+2006-06-04  Ulrich Drepper  <drepper@redhat.com>
+
+       * sysdeps/pthread/pthread.h: Add pthread_equal inline version.
+
 2006-05-15  Ulrich Drepper  <drepper@redhat.com>
 
-       * sysdeps/unix/sysv/linux/fork.h: Makr __fork_handlers as hidden.
+       * sysdeps/unix/sysv/linux/fork.h: Mark __fork_handlers as hidden.
 
 2006-05-11  Ulrich Drepper  <drepper@redhat.com>
 
index 5f34302e0c23a2b40301a35d67d2421064519a24..f60ecdee18c48559603baec1e5fceb0534f38a8b 100644 (file)
@@ -1100,6 +1100,16 @@ extern int pthread_atfork (void (*__prepare) (void),
                           void (*__parent) (void),
                           void (*__child) (void)) __THROW;
 
+
+#ifdef __USE_EXTERN_INLINES
+/* Optimizations.  */
+extern __inline int
+__NTH (pthread_equal (pthread_t __thread1, pthread_t __thread2))
+{
+  return __thread1 == __thread2;
+}
+#endif
+
 __END_DECLS
 
 #endif /* pthread.h */