File tree Expand file tree Collapse file tree
expected/wasm32-wasi/posix
libc-top-half/musl/src/thread Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -214,7 +214,9 @@ LIBC_TOP_HALF_MUSL_SOURCES += \
214214 thread/pthread_condattr_setclock.c \
215215 thread/pthread_condattr_setpshared.c \
216216 thread/pthread_create.c \
217+ thread/pthread_getspecific.c \
217218 thread/pthread_join.c \
219+ thread/pthread_key_create.c \
218220 thread/pthread_mutex_consistent.c \
219221 thread/pthread_mutex_destroy.c \
220222 thread/pthread_mutex_init.c \
@@ -229,6 +231,7 @@ LIBC_TOP_HALF_MUSL_SOURCES += \
229231 thread/pthread_mutexattr_setpshared.c \
230232 thread/pthread_mutexattr_setrobust.c \
231233 thread/pthread_mutexattr_settype.c \
234+ thread/pthread_once.c \
232235 thread/pthread_rwlock_destroy.c \
233236 thread/pthread_rwlock_init.c \
234237 thread/pthread_rwlock_rdlock.c \
@@ -242,6 +245,7 @@ LIBC_TOP_HALF_MUSL_SOURCES += \
242245 thread/pthread_rwlockattr_init.c \
243246 thread/pthread_rwlockattr_setpshared.c \
244247 thread/pthread_setcancelstate.c \
248+ thread/pthread_setspecific.c \
245249 thread/pthread_self.c \
246250 thread/pthread_testcancel.c \
247251 thread/sem_destroy.c \
Original file line number Diff line number Diff line change @@ -194,11 +194,15 @@ __pthread_cond_timedwait
194194__pthread_create
195195__pthread_exit
196196__pthread_join
197+ __pthread_key_create
198+ __pthread_key_delete
197199__pthread_mutex_lock
198200__pthread_mutex_timedlock
199201__pthread_mutex_trylock
200202__pthread_mutex_trylock_owner
201203__pthread_mutex_unlock
204+ __pthread_once
205+ __pthread_once_full
202206__pthread_rwlock_rdlock
203207__pthread_rwlock_timedrdlock
204208__pthread_rwlock_timedwrlock
@@ -979,7 +983,10 @@ pthread_condattr_setclock
979983pthread_condattr_setpshared
980984pthread_create
981985pthread_exit
986+ pthread_getspecific
982987pthread_join
988+ pthread_key_create
989+ pthread_key_delete
983990pthread_mutex_consistent
984991pthread_mutex_destroy
985992pthread_mutex_getprioceiling
@@ -994,6 +1001,7 @@ pthread_mutexattr_setprotocol
9941001pthread_mutexattr_setpshared
9951002pthread_mutexattr_setrobust
9961003pthread_mutexattr_settype
1004+ pthread_once
9971005pthread_rwlock_destroy
9981006pthread_rwlock_init
9991007pthread_rwlock_rdlock
@@ -1008,6 +1016,7 @@ pthread_rwlockattr_init
10081016pthread_rwlockattr_setpshared
10091017pthread_self
10101018pthread_setcancelstate
1019+ pthread_setspecific
10111020pthread_testcancel
10121021pthread_timedjoin_np
10131022pthread_tryjoin_np
@@ -1219,6 +1228,7 @@ truncate
12191228truncf
12201229truncl
12211230tsearch
1231+ tss_get
12221232twalk
12231233uname
12241234ungetc
Original file line number Diff line number Diff line change @@ -50,7 +50,9 @@ int __pthread_key_delete(pthread_key_t k)
5050 sigset_t set ;
5151 pthread_t self = __pthread_self (), td = self ;
5252
53+ #ifdef __wasilibc_unmodified_upstream
5354 __block_app_sigs (& set );
55+ #endif
5456 __pthread_rwlock_wrlock (& key_lock );
5557
5658 __tl_lock ();
@@ -61,7 +63,9 @@ int __pthread_key_delete(pthread_key_t k)
6163 keys [k ] = 0 ;
6264
6365 __pthread_rwlock_unlock (& key_lock );
66+ #ifdef __wasilibc_unmodified_upstream
6467 __restore_sigs (& set );
68+ #endif
6569
6670 return 0 ;
6771}
You can’t perform that action at this time.
0 commit comments