diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2015-12-11 17:46:36 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2015-12-11 17:46:36 +0100 |
commit | 907fab424120059d09aebaa083ddc0557d13f2ef (patch) | |
tree | 5391df70ca628bab02a716ceb04a566173f86b5e | |
parent | 577a738522d34a64cb3cd5bb8368c8b1a344f38e (diff) |
Add throw specification to inlines
* include/pthread/pthread.h: Add __THROW and __THROWNL specification to
extern inlines definitions.
-rw-r--r-- | include/pthread/pthread.h | 12 |
1 files 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 <bits/spin-lock-inline.h> __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); } |