Home
last modified time | relevance | path

Searched refs:cwl (Results 1 – 1 of 1) sorted by relevance

/third_party/iowow/src/rdb/
Diwrdb.c18 pthread_rwlock_t *cwl; member
27 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 …]