diff options
author | Ulrich Drepper <drepper@redhat.com> | 2006-06-04 23:59:07 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2006-06-04 23:59:07 +0000 |
commit | c26ca5e17ded3275872d9fb48776d155ca7285d5 (patch) | |
tree | a309977b9c0cf88c2e5d4d845d23807d2fc5dd82 /nptl/sysdeps/pthread/pthread.h | |
parent | 1b8373f475105307ee3b64d423ffec995ddd6cde (diff) | |
download | glibc-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.
Diffstat (limited to 'nptl/sysdeps/pthread/pthread.h')
-rw-r--r-- | nptl/sysdeps/pthread/pthread.h | 10 |
1 files changed, 10 insertions, 0 deletions
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 */ |