From 907fab424120059d09aebaa083ddc0557d13f2ef Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Fri, 11 Dec 2015 17:46:36 +0100 Subject: Add throw specification to inlines * include/pthread/pthread.h: Add __THROW and __THROWNL specification to extern inlines definitions. --- include/pthread/pthread.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/include/pthread/pthread.h b/include/pthread/pthread.h index bbb6c9f..24a6fa3 100644 --- a/include/pthread/pthread.h +++ b/include/pthread/pthread.h @@ -234,7 +234,7 @@ extern int pthread_equal (pthread_t __t1, pthread_t __t2) __THROW; # ifdef __USE_EXTERN_INLINES __extern_inline int -pthread_equal (pthread_t __t1, pthread_t __t2) +pthread_equal (pthread_t __t1, pthread_t __t2) __THROW { return __pthread_equal (__t1, __t2); } @@ -516,31 +516,31 @@ extern int pthread_spin_unlock (pthread_spinlock_t *__lock) # include __extern_inline int -pthread_spin_destroy (pthread_spinlock_t *__lock) +pthread_spin_destroy (pthread_spinlock_t *__lock) __THROW { return __pthread_spin_destroy (__lock); } __extern_inline int -pthread_spin_init (pthread_spinlock_t *__lock, int __pshared) +pthread_spin_init (pthread_spinlock_t *__lock, int __pshared) __THROW { return __pthread_spin_init (__lock, __pshared); } __extern_inline int -pthread_spin_lock (pthread_spinlock_t *__lock) +pthread_spin_lock (pthread_spinlock_t *__lock) __THROWNL { return __pthread_spin_lock (__lock); } __extern_inline int -pthread_spin_trylock (pthread_spinlock_t *__lock) +pthread_spin_trylock (pthread_spinlock_t *__lock) __THROWNL { return __pthread_spin_trylock (__lock); } __extern_inline int -pthread_spin_unlock (pthread_spinlock_t *__lock) +pthread_spin_unlock (pthread_spinlock_t *__lock) __THROWNL { return __pthread_spin_unlock (__lock); } -- cgit v1.2.3