diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2008-01-01 04:07:14 +0000 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2008-01-01 04:07:14 +0000 |
commit | a831c87b798b78c22ef496de6ddb2e6e447aabad (patch) | |
tree | 9b47b847de2105fcd6464e54106356e791945190 /sysdeps/generic/bits/pthread.h | |
parent | 0697fd051821d7b44b3c9ab2face57438e1a764a (diff) |
2008-01-01 Samuel Thibault <samuel.thibault@ens-lyon.org
* include/pthread/pthread.h (pthread_spin_destroy, pthread_spin_init,
pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock): Use
__extern_inline macro instead of extern __inline.
* sysdeps/i386/bits/spin-lock.h (__PT_SPIN_INLINE,
__pthread_spin_lock): Likewise
* sysdeps/mach/bits/spin-lock.h (__PT_SPIN_INLINE,
__pthread_spin_lock): Likewise
* sysdeps/generic/bits/pthread.h (pthread_equal): Declare ; only
provide inline when __USE_EXTERN_INLINES is defined. Use __extern_inline
macro instead of extern __inline.
* sysdeps/i386/bits/memory.h (__memory_barrier): Add static to inline.
Diffstat (limited to 'sysdeps/generic/bits/pthread.h')
-rw-r--r-- | sysdeps/generic/bits/pthread.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sysdeps/generic/bits/pthread.h b/sysdeps/generic/bits/pthread.h index 3f9df13..5e239d6 100644 --- a/sysdeps/generic/bits/pthread.h +++ b/sysdeps/generic/bits/pthread.h @@ -24,10 +24,15 @@ typedef int pthread_t; /* Return true if __T1 and __T2 both name the same thread. Otherwise, false. */ -extern __inline int +extern int +pthread_equal (pthread_t __t1, pthread_t __t2); + +#ifdef __USE_EXTERN_INLINES +__extern_inline int pthread_equal (pthread_t __t1, pthread_t __t2) { return __t1 == __t2; } +#endif #endif /* bits/pthread.h */ |