fix more instances of old a_xchg (use new a_swap name)
[musl] / src / thread / pthread_spin_lock.c
index 0ab3d64..df575f0 100644 (file)
@@ -2,6 +2,6 @@
 
 int pthread_spin_lock(pthread_spinlock_t *s)
 {
 
 int pthread_spin_lock(pthread_spinlock_t *s)
 {
-       while (a_xchg(s, 1)) a_spin();
+       while (a_swap(s, 1)) a_spin();
        return 0;
 }
        return 0;
 }