1
0

pthread_rwlock_trywrlock.c 218 B

123456789
  1. #include "pthread_impl.h"
  2. int __pthread_rwlock_trywrlock(pthread_rwlock_t *rw)
  3. {
  4. if (a_cas(&rw->_rw_lock, 0, 0x7fffffff)) return EBUSY;
  5. return 0;
  6. }
  7. weak_alias(__pthread_rwlock_trywrlock, pthread_rwlock_trywrlock);