1 #include "threads_impl.h"
2 #include <errno.h>
3 
pthread_spin_trylock(pthread_spinlock_t * s)4 int pthread_spin_trylock(pthread_spinlock_t* s) {
5     return a_cas_shim(s, 0, EBUSY);
6 }
7