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 Sep 5, 2022
1 parent 2057ce9 commit 1811af1
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 @@ -207,6 +207,11 @@ LIBC_TOP_HALF_MUSL_SOURCES += \
thread/pthread_mutexattr_setpshared.c \
thread/pthread_mutexattr_setrobust.c \
thread/pthread_mutexattr_settype.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/posix/defined-symbols.txt
Original file line number Diff line number Diff line change
Expand Up @@ -945,6 +945,11 @@ pthread_mutexattr_setpshared
pthread_mutexattr_setrobust
pthread_mutexattr_settype
pthread_setcancelstate
pthread_spin_destroy
pthread_spin_init
pthread_spin_lock
pthread_spin_trylock
pthread_spin_unlock
pthread_testcancel
putc
putc_unlocked
Expand Down

0 comments on commit 1811af1

Please sign in to comment.