From 27ba71f95e6bdb4c04eb8209c8072b5049686636 Mon Sep 17 00:00:00 2001 From: Marcin Kolny Date: Tue, 6 Sep 2022 19:14:07 +0200 Subject: [PATCH] Implement support for pthread_rwlock (#321) * threads: implement support for pthread_rwlockattr * threads: implement support for pthread_rwlock --- Makefile | 12 ++++++++++++ .../wasm32-wasi/posix/defined-symbols.txt | 19 +++++++++++++++++++ 2 files changed, 31 insertions(+) diff --git a/Makefile b/Makefile index 5424559..116d74f 100644 --- a/Makefile +++ b/Makefile @@ -211,6 +211,18 @@ LIBC_TOP_HALF_MUSL_SOURCES += \ thread/pthread_mutexattr_setpshared.c \ thread/pthread_mutexattr_setrobust.c \ thread/pthread_mutexattr_settype.c \ + thread/pthread_rwlock_destroy.c \ + thread/pthread_rwlock_init.c \ + thread/pthread_rwlock_rdlock.c \ + thread/pthread_rwlock_timedrdlock.c \ + thread/pthread_rwlock_timedwrlock.c \ + thread/pthread_rwlock_tryrdlock.c \ + thread/pthread_rwlock_trywrlock.c \ + thread/pthread_rwlock_unlock.c \ + thread/pthread_rwlock_wrlock.c \ + thread/pthread_rwlockattr_destroy.c \ + thread/pthread_rwlockattr_init.c \ + thread/pthread_rwlockattr_setpshared.c \ thread/pthread_testcancel.c \ thread/sem_destroy.c \ thread/sem_getvalue.c \ diff --git a/expected/wasm32-wasi/posix/defined-symbols.txt b/expected/wasm32-wasi/posix/defined-symbols.txt index 6d82e1c..931dc1b 100644 --- a/expected/wasm32-wasi/posix/defined-symbols.txt +++ b/expected/wasm32-wasi/posix/defined-symbols.txt @@ -186,6 +186,13 @@ __pthread_mutex_timedlock __pthread_mutex_trylock __pthread_mutex_trylock_owner __pthread_mutex_unlock +__pthread_rwlock_rdlock +__pthread_rwlock_timedrdlock +__pthread_rwlock_timedwrlock +__pthread_rwlock_tryrdlock +__pthread_rwlock_trywrlock +__pthread_rwlock_unlock +__pthread_rwlock_wrlock __pthread_setcancelstate __pthread_testcancel __putenv @@ -948,6 +955,18 @@ pthread_mutexattr_setprotocol pthread_mutexattr_setpshared pthread_mutexattr_setrobust pthread_mutexattr_settype +pthread_rwlock_destroy +pthread_rwlock_init +pthread_rwlock_rdlock +pthread_rwlock_timedrdlock +pthread_rwlock_timedwrlock +pthread_rwlock_tryrdlock +pthread_rwlock_trywrlock +pthread_rwlock_unlock +pthread_rwlock_wrlock +pthread_rwlockattr_destroy +pthread_rwlockattr_init +pthread_rwlockattr_setpshared pthread_setcancelstate pthread_testcancel putc -- 2.39.5