pthread_spin_trylock.c 110 B

123456
  1. #include "pthread_impl.h"
  2. int pthread_spin_trylock(pthread_spinlock_t *s)
  3. {
  4. return -a_swap(s, 1) & EBUSY;
  5. }