Searched refs:cwl (Results 1 – 1 of 1) sorted by relevance
18 pthread_rwlock_t *cwl; member27 int rci = db->cwl ? pthread_rwlock_wrlock(db->cwl) : 0; in _wlock()32 int rci = db->cwl ? pthread_rwlock_rdlock(db->cwl) : 0; in _rlock()37 int rci = db->cwl ? pthread_rwlock_unlock(db->cwl) : 0; in _unlock()43 db->cwl = 0; in _initlocks()46 db->cwl = malloc(sizeof(*db->cwl)); in _initlocks()47 if (!db->cwl) { in _initlocks()56 int rci = pthread_rwlock_init(db->cwl, &attr); in _initlocks()58 free(db->cwl); in _initlocks()59 db->cwl = 0; in _initlocks()[all …]