39 rc = pthread_rwlock_init(&
lock->rw_lock,
NULL);
47 rc = pthread_rwlock_destroy(&
lock->rw_lock);
55 rc = pthread_rwlock_wrlock(&
lock->rw_lock);
63 rc = pthread_rwlock_unlock(&
lock->rw_lock);
71 rc = pthread_rwlock_rdlock(&
lock->rw_lock);
79 rc = pthread_rwlock_unlock(&
lock->rw_lock);
static struct m0_mutex lock
M0_INTERNAL void m0_rwlock_write_lock(struct m0_rwlock *lock)
M0_INTERNAL void m0_rwlock_init(struct m0_rwlock *lock)
M0_INTERNAL void m0_rwlock_write_unlock(struct m0_rwlock *lock)
M0_INTERNAL void m0_rwlock_read_lock(struct m0_rwlock *lock)
M0_INTERNAL void m0_rwlock_fini(struct m0_rwlock *lock)
#define M0_ASSERT_INFO(cond, fmt,...)
M0_INTERNAL void m0_rwlock_read_unlock(struct m0_rwlock *lock)