diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2020-01-13 20:04:44 +0000 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2020-02-09 13:56:48 +0100 |
commit | 95669bbf2c20518cbbcd31681e2dc954c5233b79 (patch) | |
tree | 7f3d78ffb5c298aefac521e3543d9f64b8d0876c /sysdeps | |
parent | e775f443bda95c0ff494879e9ee84d482292ad7e (diff) | |
download | glibc-95669bbf2c20518cbbcd31681e2dc954c5233b79.tar.gz glibc-95669bbf2c20518cbbcd31681e2dc954c5233b79.tar.xz glibc-95669bbf2c20518cbbcd31681e2dc954c5233b79.zip |
htl: Add missing internal functions declarations
Diffstat (limited to 'sysdeps')
-rw-r--r-- | sysdeps/htl/pthreadP.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/sysdeps/htl/pthreadP.h b/sysdeps/htl/pthreadP.h index c6ddf76fd4..b1c7575f89 100644 --- a/sysdeps/htl/pthreadP.h +++ b/sysdeps/htl/pthreadP.h @@ -30,11 +30,22 @@ extern struct __pthread **__pthread_threads; extern int __pthread_mutex_init (pthread_mutex_t *__mutex, const pthread_mutexattr_t *__attr); extern int __pthread_mutex_destroy (pthread_mutex_t *__mutex); extern int __pthread_mutex_lock (pthread_mutex_t *__mutex); +extern int __pthread_mutex_trylock (pthread_mutex_t *_mutex); extern int __pthread_mutex_timedlock (pthread_mutex_t *__mutex, const struct timespec *__abstime); extern int __pthread_mutex_unlock (pthread_mutex_t *__mutex); +extern int __pthread_mutexattr_init (pthread_mutexattr_t *attr); +extern int __pthread_mutexattr_settype (pthread_mutexattr_t *attr, int kind); +extern int __pthread_cond_init (pthread_cond_t *cond, + const pthread_condattr_t *cond_attr); +extern int __pthread_cond_signal (pthread_cond_t *cond); extern int __pthread_cond_broadcast (pthread_cond_t *cond); +extern int __pthread_cond_wait (pthread_cond_t *cond, pthread_mutex_t *mutex); +extern int __pthread_cond_timedwait (pthread_cond_t *cond, + pthread_mutex_t *mutex, + const struct timespec *abstime); +extern int __pthread_cond_destroy (pthread_cond_t *cond); typedef struct __cthread *__cthread_t; typedef int __cthread_key_t; @@ -55,6 +66,8 @@ int __cthread_setspecific (__cthread_key_t, void *); int __pthread_key_create (pthread_key_t *key, void (*destr) (void *)); void *__pthread_getspecific (pthread_key_t key); int __pthread_setspecific (pthread_key_t key, const void *value); +int __pthread_key_delete (pthread_key_t key); +int __pthread_once (pthread_once_t *once_control, void (*init_routine) (void)); int __pthread_setcancelstate (int state, int *oldstate); |