Lines Matching defs:rwlock
46 pthread_rwlock_t* rwlock =
51 bzero(rwlock, sizeof(pthread_rwlock_t));
54 // Initialize the rwlock
55 int errorcode = pthread_rwlock_init(rwlock, nullptr);
60 data_ = rwlock;
66 pthread_rwlock_t* rwlock = static_cast<pthread_rwlock_t*>(data_);
67 assert(rwlock != nullptr);
68 pthread_rwlock_destroy(rwlock);
69 free(rwlock);
75 pthread_rwlock_t* rwlock = static_cast<pthread_rwlock_t*>(data_);
76 assert(rwlock != nullptr);
78 int errorcode = pthread_rwlock_rdlock(rwlock);
85 pthread_rwlock_t* rwlock = static_cast<pthread_rwlock_t*>(data_);
86 assert(rwlock != nullptr);
88 int errorcode = pthread_rwlock_unlock(rwlock);
93 pthread_rwlock_t *rwlock = static_cast<pthread_rwlock_t *>(data_);
94 assert(rwlock != nullptr);
96 int errorcode = pthread_rwlock_tryrdlock(rwlock);
103 pthread_rwlock_t* rwlock = static_cast<pthread_rwlock_t*>(data_);
104 assert(rwlock != nullptr);
106 int errorcode = pthread_rwlock_wrlock(rwlock);
113 pthread_rwlock_t* rwlock = static_cast<pthread_rwlock_t*>(data_);
114 assert(rwlock != nullptr);
116 int errorcode = pthread_rwlock_unlock(rwlock);
121 pthread_rwlock_t *rwlock = static_cast<pthread_rwlock_t *>(data_);
122 assert(rwlock != nullptr);
124 int errorcode = pthread_rwlock_trywrlock(rwlock);