pthread_rwlock.h 984 B

123456789101112131415161718192021
  1. #ifndef __PTHREAD_RWLOCK_H__
  2. #define __PTHREAD_RWLOCK_H__
  3. int pthread_rwlock_init (pthread_rwlock_t * rwlock, const pthread_rwlockattr_t * attr);
  4. int pthread_rwlock_destroy (pthread_rwlock_t * rwlock);
  5. int pthread_rwlock_rdlock (pthread_rwlock_t * rwlock);
  6. int pthread_rwlock_tryrdlock (pthread_rwlock_t * rwlock);
  7. int pthread_rwlock_timedrdlock (pthread_rwlock_t * rwlock, const struct timespec *abstime);
  8. int pthread_rwlock_timedwrlock (pthread_rwlock_t * rwlock, const struct timespec *abstime);
  9. int pthread_rwlock_trywrlock (pthread_rwlock_t * rwlock);
  10. int pthread_rwlock_unlock (pthread_rwlock_t * rwlock);
  11. int pthread_rwlock_wrlock (pthread_rwlock_t * rwlock);
  12. int pthread_rwlockattr_init (pthread_rwlockattr_t * attr);
  13. int pthread_rwlockattr_destroy (pthread_rwlockattr_t * attr);
  14. int pthread_rwlockattr_getpshared (const pthread_rwlockattr_t * attr, int *pshared);
  15. int pthread_rwlockattr_setpshared (pthread_rwlockattr_t * attr, int pshared);
  16. #endif