Lines Matching refs:plock
29 pthread_mutex_init(&rw->plock, NULL); in init_rwlock()
40 pthread_mutex_lock(&rw->plock); in rw_lock_read()
45 pthread_cond_wait(&rw->pcond, &rw->plock); in rw_lock_read()
50 pthread_mutex_unlock(&rw->plock); in rw_lock_read()
55 pthread_mutex_lock(&rw->plock); in rw_lock_write()
60 pthread_cond_wait(&rw->pcond, &rw->plock); in rw_lock_write()
66 pthread_mutex_unlock(&rw->plock); in rw_lock_write()
72 pthread_mutex_lock(&rw->plock); in rw_unlock_read()
75 pthread_mutex_unlock(&rw->plock); in rw_unlock_read()
80 pthread_mutex_lock(&rw->plock); in rw_unlock_write()
83 pthread_mutex_unlock(&rw->plock); in rw_unlock_write()
89 pthread_mutex_lock(&rw->plock); in rw_trylock_read()
94 pthread_mutex_unlock(&rw->plock); in rw_trylock_read()
101 pthread_mutex_lock(&rw->plock); in rw_trylock_write()
106 pthread_mutex_unlock(&rw->plock); in rw_trylock_write()