From c0aff7248c1b2a4e5f8c49af19342e5ddf1ca865 Mon Sep 17 00:00:00 2001
From: Marcin Kolny <mkolny@amazon.com>
Date: Thu, 26 Jan 2023 17:42:48 +0000
Subject: [PATCH] threads: implement support for spinlock (#324)

---
 Makefile                                         | 5 +++++
 expected/wasm32-wasi-threads/defined-symbols.txt | 1 -
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 6bbe6771e..dd5800e6c 100644
--- a/Makefile
+++ b/Makefile
@@ -286,6 +286,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 4979967e5..1d5bad2a4 100644
--- a/expected/wasm32-wasi-threads/defined-symbols.txt
+++ b/expected/wasm32-wasi-threads/defined-symbols.txt
@@ -1338,7 +1338,6 @@ pthread_setname_np
 pthread_setschedparam
 pthread_setschedprio
 pthread_setspecific
-pthread_sigmask
 pthread_spin_destroy
 pthread_spin_init
 pthread_spin_lock