diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2020-01-13 20:41:07 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2020-01-13 20:41:07 +0100 |
commit | a8f0fc4e5fbad300d524a3339d503c41e3182ed0 (patch) | |
tree | 8d7294cf3743145725d03ea21a860b5c78c9f2ba /sysdeps/htl | |
parent | 1d62a403734b18367eb0aa47493d0de644edd00b (diff) | |
download | glibc-a8f0fc4e5fbad300d524a3339d503c41e3182ed0.tar.gz glibc-a8f0fc4e5fbad300d524a3339d503c41e3182ed0.tar.xz glibc-a8f0fc4e5fbad300d524a3339d503c41e3182ed0.zip |
htl: Add internal version of __pthread_mutex_timedlock
The C11 threads implementation will need it.
Diffstat (limited to 'sysdeps/htl')
-rw-r--r-- | sysdeps/htl/pt-mutex-timedlock.c | 3 | ||||
-rw-r--r-- | sysdeps/htl/pthreadP.h | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/sysdeps/htl/pt-mutex-timedlock.c b/sysdeps/htl/pt-mutex-timedlock.c index d0ebb2975e..0e50f38ef2 100644 --- a/sysdeps/htl/pt-mutex-timedlock.c +++ b/sysdeps/htl/pt-mutex-timedlock.c @@ -189,8 +189,9 @@ __pthread_mutex_timedlock_internal (struct __pthread_mutex *mutex, } int -pthread_mutex_timedlock (struct __pthread_mutex *mutex, +__pthread_mutex_timedlock (struct __pthread_mutex *mutex, const struct timespec *abstime) { return __pthread_mutex_timedlock_internal (mutex, abstime); } +strong_alias (__pthread_mutex_timedlock, pthread_mutex_timedlock) diff --git a/sysdeps/htl/pthreadP.h b/sysdeps/htl/pthreadP.h index af0154538a..affe7cdf53 100644 --- a/sysdeps/htl/pthreadP.h +++ b/sysdeps/htl/pthreadP.h @@ -29,6 +29,8 @@ extern struct __pthread **__pthread_threads; extern int _pthread_mutex_init (pthread_mutex_t *mutex, const pthread_mutexattr_t *attr); extern int __pthread_mutex_lock (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_cond_broadcast (pthread_cond_t *cond); |