use weak aliases rather than function pointers to simplify some code
[musl] / src / thread / pthread_spin_unlock.c
index a7eab33..724d9e0 100644 (file)
@@ -2,5 +2,6 @@
 
 int pthread_spin_unlock(pthread_spinlock_t *s)
 {
-       return *s = 0;
+       a_store(s, 0);
+       return 0;
 }