provide NSIG under _BSD_SOURCE (default) as well as _GNU_SOURCE
[musl] / 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 }