add legacy getloadavg api
[musl.git] / src / thread / pthread_spin_trylock.c
blob59de695ddad9ebb4ad941574681829513fe321db
1 #include "pthread_impl.h"
3 int pthread_spin_trylock(pthread_spinlock_t *s)
5 return -a_swap(s, 1) & EBUSY;