Lines Matching defs:rwlock
47 pthread_rwlock_t* rwlock =
52 bzero(rwlock, sizeof(pthread_rwlock_t));
55 // Initialize the rwlock
56 int errorcode = pthread_rwlock_init(rwlock, nullptr);
61 data_ = rwlock;
67 pthread_rwlock_t* rwlock = static_cast<pthread_rwlock_t*>(data_);
68 assert(rwlock != nullptr);
69 pthread_rwlock_destroy(rwlock);
70 free(rwlock);
76 pthread_rwlock_t* rwlock = static_cast<pthread_rwlock_t*>(data_);
77 assert(rwlock != nullptr);
79 int errorcode = pthread_rwlock_rdlock(rwlock);
86 pthread_rwlock_t* rwlock = static_cast<pthread_rwlock_t*>(data_);
87 assert(rwlock != nullptr);
89 int errorcode = pthread_rwlock_unlock(rwlock);
94 pthread_rwlock_t *rwlock = static_cast<pthread_rwlock_t *>(data_);
95 assert(rwlock != nullptr);
97 int errorcode = pthread_rwlock_tryrdlock(rwlock);
104 pthread_rwlock_t* rwlock = static_cast<pthread_rwlock_t*>(data_);
105 assert(rwlock != nullptr);
107 int errorcode = pthread_rwlock_wrlock(rwlock);
114 pthread_rwlock_t* rwlock = static_cast<pthread_rwlock_t*>(data_);
115 assert(rwlock != nullptr);
117 int errorcode = pthread_rwlock_unlock(rwlock);
122 pthread_rwlock_t *rwlock = static_cast<pthread_rwlock_t *>(data_);
123 assert(rwlock != nullptr);
125 int errorcode = pthread_rwlock_trywrlock(rwlock);