2 #include "pthread/read_write_lock.hpp"
8 int ret = pthread_rwlock_wrlock(&
_rwlock);
15 int ret = pthread_rwlock_trywrlock(&
_rwlock);
33 int ret = pthread_rwlock_rdlock(&
_rwlock);
40 int ret = pthread_rwlock_tryrdlock(&
_rwlock);
47 int ret = pthread_rwlock_unlock(&
_rwlock);
54 int ret = pthread_rwlock_init(&
_rwlock, NULL);
61 pthread_rwlock_destroy(&
_rwlock);