Skip to content

Commit b481499

Browse files
authored
threads: implement support for spinlock (WebAssembly#324)
1 parent 8f52757 commit b481499

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,11 @@ LIBC_TOP_HALF_MUSL_SOURCES += \
262262
thread/pthread_setcancelstate.c \
263263
thread/pthread_setspecific.c \
264264
thread/pthread_self.c \
265+
thread/pthread_spin_destroy.c \
266+
thread/pthread_spin_init.c \
267+
thread/pthread_spin_lock.c \
268+
thread/pthread_spin_trylock.c \
269+
thread/pthread_spin_unlock.c \
265270
thread/pthread_testcancel.c \
266271
thread/sem_destroy.c \
267272
thread/sem_getvalue.c \

expected/wasm32-wasi-threads/defined-symbols.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1044,6 +1044,11 @@ pthread_rwlockattr_setpshared
10441044
pthread_self
10451045
pthread_setcancelstate
10461046
pthread_setspecific
1047+
pthread_spin_destroy
1048+
pthread_spin_init
1049+
pthread_spin_lock
1050+
pthread_spin_trylock
1051+
pthread_spin_unlock
10471052
pthread_testcancel
10481053
pthread_timedjoin_np
10491054
pthread_tryjoin_np

0 commit comments

Comments
 (0)