rework cancellation weak alias logic not to depend on archive order
[oweals/musl.git] / src / thread / pthread_spin_trylock.c
1 #include "pthread_impl.h"
2
3 int pthread_spin_trylock(pthread_spinlock_t *s)
4 {
5         return -a_swap(s, 1) & EBUSY;
6 }