diff options
Diffstat (limited to 'sysdeps/htl/include/pthread.h')
-rw-r--r-- | sysdeps/htl/include/pthread.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/sysdeps/htl/include/pthread.h b/sysdeps/htl/include/pthread.h new file mode 100644 index 0000000..173b1eb --- /dev/null +++ b/sysdeps/htl/include/pthread.h @@ -0,0 +1,36 @@ +#ifndef _PTHREAD_H +#include_next <pthread.h> +#if defined __USE_EXTERN_INLINES && defined _LIBC && !IS_IN (libsupport) +# include <bits/spin-lock-inline.h> + +__extern_inline int +pthread_spin_destroy (pthread_spinlock_t *__lock) +{ + return __pthread_spin_destroy (__lock); +} + +__extern_inline int +pthread_spin_init (pthread_spinlock_t *__lock, int __pshared) +{ + return __pthread_spin_init (__lock, __pshared); +} + +__extern_inline int +pthread_spin_lock (pthread_spinlock_t *__lock) +{ + return __pthread_spin_lock (__lock); +} + +__extern_inline int +pthread_spin_trylock (pthread_spinlock_t *__lock) +{ + return __pthread_spin_trylock (__lock); +} + +__extern_inline int +pthread_spin_unlock (pthread_spinlock_t *__lock) +{ + return __pthread_spin_unlock (__lock); +} +#endif +#endif |