summaryrefslogtreecommitdiff
path: root/sysdeps/generic
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2008-01-01 04:07:14 +0000
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2008-01-01 04:07:14 +0000
commit5f60c7ab2316b9b4c61294b754a08e4cb1a9c4e6 (patch)
tree1f887e11f8916aef00cebe5396fef48af60a1e6c /sysdeps/generic
parent8caaa8379e5a1500863792514189d6e8f414dcaf (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')
-rw-r--r--sysdeps/generic/bits/pthread.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/sysdeps/generic/bits/pthread.h b/sysdeps/generic/bits/pthread.h
index 3f9df13d..5e239d67 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 */