Skip to content

Commit

Permalink
threads: implement support for spinlock
Browse files Browse the repository at this point in the history
  • Loading branch information
loganek committed Jan 26, 2023
1 parent 4362b18 commit 14aa31a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,11 @@ LIBC_TOP_HALF_MUSL_SOURCES += \
thread/pthread_setcancelstate.c \
thread/pthread_setspecific.c \
thread/pthread_self.c \
thread/pthread_spin_destroy.c \
thread/pthread_spin_init.c \
thread/pthread_spin_lock.c \
thread/pthread_spin_trylock.c \
thread/pthread_spin_unlock.c \
thread/pthread_testcancel.c \
thread/sem_destroy.c \
thread/sem_getvalue.c \
Expand Down
5 changes: 5 additions & 0 deletions expected/wasm32-wasi-threads/defined-symbols.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1044,6 +1044,11 @@ pthread_rwlockattr_setpshared
pthread_self
pthread_setcancelstate
pthread_setspecific
pthread_spin_destroy
pthread_spin_init
pthread_spin_lock
pthread_spin_trylock
pthread_spin_unlock
pthread_testcancel
pthread_timedjoin_np
pthread_tryjoin_np
Expand Down

0 comments on commit 14aa31a

Please sign in to comment.