From 639bcf251e549f634da9a3e7ef8528eb2ec12505 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Sat, 16 Feb 2019 11:44:07 -0500 Subject: introduce namespace-safe rwlock aliases; use in pthread_key_create commit 84d061d5a31c9c773e29e1e2b1ffe8cb9557bc58 inadvertently introduced namespace violations by using the pthread-namespace rwlock functions in pthread_key_create, which is in turn used for C11 tss. fix that and possible future uses of rwlocks elsewhere. --- src/include/pthread.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/include') diff --git a/src/include/pthread.h b/src/include/pthread.h index d93ac3a5..7167d3e1 100644 --- a/src/include/pthread.h +++ b/src/include/pthread.h @@ -18,5 +18,12 @@ hidden int __private_cond_signal(pthread_cond_t *, int); hidden int __pthread_cond_timedwait(pthread_cond_t *restrict, pthread_mutex_t *restrict, const struct timespec *restrict); hidden int __pthread_key_create(pthread_key_t *, void (*)(void *)); hidden int __pthread_key_delete(pthread_key_t); +hidden int __pthread_rwlock_rdlock(pthread_rwlock_t *); +hidden int __pthread_rwlock_tryrdlock(pthread_rwlock_t *); +hidden int __pthread_rwlock_timedrdlock(pthread_rwlock_t *__restrict, const struct timespec *__restrict); +hidden int __pthread_rwlock_wrlock(pthread_rwlock_t *); +hidden int __pthread_rwlock_trywrlock(pthread_rwlock_t *); +hidden int __pthread_rwlock_timedwrlock(pthread_rwlock_t *__restrict, const struct timespec *__restrict); +hidden int __pthread_rwlock_unlock(pthread_rwlock_t *); #endif -- cgit v1.2.1