about summary refs log tree commit diff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2006-06-04 23:59:07 +0000
committerUlrich Drepper <drepper@redhat.com>2006-06-04 23:59:07 +0000
commitc26ca5e17ded3275872d9fb48776d155ca7285d5 (patch)
treea309977b9c0cf88c2e5d4d845d23807d2fc5dd82
parent1b8373f475105307ee3b64d423ffec995ddd6cde (diff)
downloadglibc-c26ca5e17ded3275872d9fb48776d155ca7285d5.tar.gz
glibc-c26ca5e17ded3275872d9fb48776d155ca7285d5.tar.xz
glibc-c26ca5e17ded3275872d9fb48776d155ca7285d5.zip
Add pthread_equal inline function.
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.
-rw-r--r--nptl/ChangeLog6
-rw-r--r--nptl/sysdeps/pthread/pthread.h10
2 files changed, 15 insertions, 1 deletions
diff --git a/nptl/ChangeLog b/nptl/ChangeLog
index 2dd2838037..907c1b910a 100644
--- a/nptl/ChangeLog
+++ b/nptl/ChangeLog
@@ -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>
 
diff --git a/nptl/sysdeps/pthread/pthread.h b/nptl/sysdeps/pthread/pthread.h
index 5f34302e0c..f60ecdee18 100644
--- a/nptl/sysdeps/pthread/pthread.h
+++ b/nptl/sysdeps/pthread/pthread.h
@@ -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 */