]> git.proxmox.com Git - wasi-libc.git/commitdiff
Implement support for pthread_rwlock (#321)
authorMarcin Kolny <marcin.kolny@gmail.com>
Tue, 6 Sep 2022 17:14:07 +0000 (19:14 +0200)
committerGitHub <noreply@github.com>
Tue, 6 Sep 2022 17:14:07 +0000 (10:14 -0700)
* threads: implement support for pthread_rwlockattr

* threads: implement support for pthread_rwlock

Makefile
expected/wasm32-wasi/posix/defined-symbols.txt

index 542455929fa6935c0ec9531f9f82b982a354bf18..116d74f799eb3075f6ee8915bc9042b467433b07 100644 (file)
--- 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 \
index 6d82e1cf2ef977af43221103b0a585ffa7525a64..931dc1bc7f6041ee973b883be8af05d58a112b95 100644 (file)
@@ -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