From c26ca5e17ded3275872d9fb48776d155ca7285d5 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sun, 4 Jun 2006 23:59:07 +0000 Subject: Add pthread_equal inline function. 2006-06-04 Ulrich Drepper * sysdeps/pthread/pthread.h: Add pthread_equal inline version. * sysdeps/unix/sysv/linux/fork.h: Mark __fork_handlers as hidden. --- nptl/sysdeps/pthread/pthread.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'nptl/sysdeps/pthread') 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 */ -- cgit v1.2.3