Lines Matching refs:rwlock
50 pthread_rwlock_t* rwlock = in RWMutexImpl() local
55 bzero(rwlock, sizeof(pthread_rwlock_t)); in RWMutexImpl()
59 int errorcode = pthread_rwlock_init(rwlock, nullptr); in RWMutexImpl()
64 data_ = rwlock; in RWMutexImpl()
70 pthread_rwlock_t* rwlock = static_cast<pthread_rwlock_t*>(data_); in ~RWMutexImpl() local
71 assert(rwlock != nullptr); in ~RWMutexImpl()
72 pthread_rwlock_destroy(rwlock); in ~RWMutexImpl()
73 free(rwlock); in ~RWMutexImpl()
79 pthread_rwlock_t* rwlock = static_cast<pthread_rwlock_t*>(data_); in reader_acquire() local
80 assert(rwlock != nullptr); in reader_acquire()
82 int errorcode = pthread_rwlock_rdlock(rwlock); in reader_acquire()
89 pthread_rwlock_t* rwlock = static_cast<pthread_rwlock_t*>(data_); in reader_release() local
90 assert(rwlock != nullptr); in reader_release()
92 int errorcode = pthread_rwlock_unlock(rwlock); in reader_release()
99 pthread_rwlock_t* rwlock = static_cast<pthread_rwlock_t*>(data_); in writer_acquire() local
100 assert(rwlock != nullptr); in writer_acquire()
102 int errorcode = pthread_rwlock_wrlock(rwlock); in writer_acquire()
109 pthread_rwlock_t* rwlock = static_cast<pthread_rwlock_t*>(data_); in writer_release() local
110 assert(rwlock != nullptr); in writer_release()
112 int errorcode = pthread_rwlock_unlock(rwlock); in writer_release()