use bss instead of mmap for main thread's pthread thread-specific data
[oweals/musl.git] / src / thread / pthread_spin_lock.c
index 59fa6ea89ad2e322f0071724c7ab09275a4a3258..0ab3d64fdaed9b831c08bf90ed32e571ab2c400a 100644 (file)
@@ -2,6 +2,6 @@
 
 int pthread_spin_lock(pthread_spinlock_t *s)
 {
-       while (a_xchg(s, 1));
+       while (a_xchg(s, 1)) a_spin();
        return 0;
 }