diff options
author | Rich Felker <dalias@aerifal.cx> | 2019-02-16 11:44:07 -0500 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2019-02-16 11:44:07 -0500 |
commit | 639bcf251e549f634da9a3e7ef8528eb2ec12505 (patch) | |
tree | 799fe258d444002e5f04c619e43cd46a0db94287 /src/include/pthread.h | |
parent | ba74a42cee90c9a4425188a021b6ad8ba80b9468 (diff) | |
download | musl-639bcf251e549f634da9a3e7ef8528eb2ec12505.tar.gz musl-639bcf251e549f634da9a3e7ef8528eb2ec12505.tar.bz2 musl-639bcf251e549f634da9a3e7ef8528eb2ec12505.tar.xz musl-639bcf251e549f634da9a3e7ef8528eb2ec12505.zip |
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.
Diffstat (limited to 'src/include/pthread.h')
-rw-r--r-- | src/include/pthread.h | 7 |
1 files changed, 7 insertions, 0 deletions
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 |