Lines Matching refs:rwlock
44 pthread_rwlock_t* rwlock = in RWMutexImpl() local
49 bzero(rwlock, sizeof(pthread_rwlock_t)); in RWMutexImpl()
53 int errorcode = pthread_rwlock_init(rwlock, nullptr); in RWMutexImpl()
58 data_ = rwlock; in RWMutexImpl()
64 pthread_rwlock_t* rwlock = static_cast<pthread_rwlock_t*>(data_); in ~RWMutexImpl() local
65 assert(rwlock != nullptr); in ~RWMutexImpl()
66 pthread_rwlock_destroy(rwlock); in ~RWMutexImpl()
67 free(rwlock); in ~RWMutexImpl()
73 pthread_rwlock_t* rwlock = static_cast<pthread_rwlock_t*>(data_); in lock_shared() local
74 assert(rwlock != nullptr); in lock_shared()
76 int errorcode = pthread_rwlock_rdlock(rwlock); in lock_shared()
83 pthread_rwlock_t* rwlock = static_cast<pthread_rwlock_t*>(data_); in unlock_shared() local
84 assert(rwlock != nullptr); in unlock_shared()
86 int errorcode = pthread_rwlock_unlock(rwlock); in unlock_shared()
93 pthread_rwlock_t* rwlock = static_cast<pthread_rwlock_t*>(data_); in lock() local
94 assert(rwlock != nullptr); in lock()
96 int errorcode = pthread_rwlock_wrlock(rwlock); in lock()
103 pthread_rwlock_t* rwlock = static_cast<pthread_rwlock_t*>(data_); in unlock() local
104 assert(rwlock != nullptr); in unlock()
106 int errorcode = pthread_rwlock_unlock(rwlock); in unlock()