Lines Matching refs:rwlock

46   pthread_rwlock_t* rwlock =  in RWMutexImpl()  local
51 bzero(rwlock, sizeof(pthread_rwlock_t)); in RWMutexImpl()
55 int errorcode = pthread_rwlock_init(rwlock, nullptr); in RWMutexImpl()
60 data_ = rwlock; in RWMutexImpl()
66 pthread_rwlock_t* rwlock = static_cast<pthread_rwlock_t*>(data_); in ~RWMutexImpl() local
67 assert(rwlock != nullptr); in ~RWMutexImpl()
68 pthread_rwlock_destroy(rwlock); in ~RWMutexImpl()
69 free(rwlock); in ~RWMutexImpl()
75 pthread_rwlock_t* rwlock = static_cast<pthread_rwlock_t*>(data_); in lock_shared() local
76 assert(rwlock != nullptr); in lock_shared()
78 int errorcode = pthread_rwlock_rdlock(rwlock); in lock_shared()
85 pthread_rwlock_t* rwlock = static_cast<pthread_rwlock_t*>(data_); in unlock_shared() local
86 assert(rwlock != nullptr); in unlock_shared()
88 int errorcode = pthread_rwlock_unlock(rwlock); in unlock_shared()
93 pthread_rwlock_t *rwlock = static_cast<pthread_rwlock_t *>(data_); in try_lock_shared() local
94 assert(rwlock != nullptr); in try_lock_shared()
96 int errorcode = pthread_rwlock_tryrdlock(rwlock); in try_lock_shared()
103 pthread_rwlock_t* rwlock = static_cast<pthread_rwlock_t*>(data_); in lock() local
104 assert(rwlock != nullptr); in lock()
106 int errorcode = pthread_rwlock_wrlock(rwlock); in lock()
113 pthread_rwlock_t* rwlock = static_cast<pthread_rwlock_t*>(data_); in unlock() local
114 assert(rwlock != nullptr); in unlock()
116 int errorcode = pthread_rwlock_unlock(rwlock); in unlock()
121 pthread_rwlock_t *rwlock = static_cast<pthread_rwlock_t *>(data_); in try_lock() local
122 assert(rwlock != nullptr); in try_lock()
124 int errorcode = pthread_rwlock_trywrlock(rwlock); in try_lock()