remove no-longer-needed unblocking of signals in pthread_create
[musl] / src / thread / pthread_spin_lock.c
index 59fa6ea..df575f0 100644 (file)
@@ -2,6 +2,6 @@
 
 int pthread_spin_lock(pthread_spinlock_t *s)
 {
-       while (a_xchg(s, 1));
+       while (a_swap(s, 1)) a_spin();
        return 0;
 }