From 14aa31a99d0976c951f4107062f91329d6098d92 Mon Sep 17 00:00:00 2001 From: Marcin Kolny Date: Mon, 5 Sep 2022 13:08:17 +0100 Subject: [PATCH] threads: implement support for spinlock --- Makefile | 5 +++++ expected/wasm32-wasi-threads/defined-symbols.txt | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/Makefile b/Makefile index 57975a799..8084ea8fb 100644 --- a/Makefile +++ b/Makefile @@ -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 \ diff --git a/expected/wasm32-wasi-threads/defined-symbols.txt b/expected/wasm32-wasi-threads/defined-symbols.txt index 8dba0f18a..75954e6ec 100644 --- a/expected/wasm32-wasi-threads/defined-symbols.txt +++ b/expected/wasm32-wasi-threads/defined-symbols.txt @@ -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