Searched refs:rwlock (Results 1 – 3 of 3) sorted by relevance
103 int pthread_rwlock_init(pthread_rwlock_t *rwlock, const pthread_rwlockattr_t *attr) in pthread_rwlock_init() argument111 if (rwlock == NULL) in pthread_rwlock_init()124 ret = pthread_mutex_init(&rwlock->lock, lock_attr); in pthread_rwlock_init()128 ret = pthread_cond_init(&rwlock->cond, cond_attr); in pthread_rwlock_init()130 pthread_mutex_destroy(&rwlock->lock); in pthread_rwlock_init()134 rwlock->numLocks = 0; in pthread_rwlock_init()135 rwlock->pendingReaders = 0; in pthread_rwlock_init()136 rwlock->pendingWriters = 0; in pthread_rwlock_init()137 rwlock->writerThreadId = 0; in pthread_rwlock_init()142 int pthread_rwlock_destroy(pthread_rwlock_t *rwlock) in pthread_rwlock_destroy() argument[all …]
49 #define _raw_read_lock(rwlock) __raw_read_lock(&(rwlock)->raw_lock) argument50 #define _raw_read_trylock(rwlock) __raw_read_trylock(&(rwlock)->raw_lock) argument51 #define _raw_read_unlock(rwlock) __raw_read_unlock(&(rwlock)->raw_lock) argument52 #define _raw_write_lock(rwlock) __raw_write_lock(&(rwlock)->raw_lock) argument54 #define _raw_write_trylock(rwlock) __raw_write_trylock(&(rwlock)->raw_lock) argument55 #define _raw_write_unlock(rwlock) __raw_write_unlock(&(rwlock)->raw_lock) argument56 #define read_can_lock(rwlock) __raw_read_can_lock(&(rwlock)->raw_lock) argument57 #define write_can_lock(rwlock) __raw_write_can_lock(&(rwlock)->raw_lock) argument
247 int pthread_rwlock_init(pthread_rwlock_t *rwlock, const pthread_rwlockattr_t *attr);248 int pthread_rwlock_destroy(pthread_rwlock_t *rwlock);250 int pthread_rwlock_rdlock(pthread_rwlock_t *rwlock);251 int pthread_rwlock_tryrdlock(pthread_rwlock_t *rwlock);252 int pthread_rwlock_timedrdlock(pthread_rwlock_t *rwlock, const struct timespec *abs_timeout);254 int pthread_rwlock_wrlock(pthread_rwlock_t *rwlock);255 int pthread_rwlock_trywrlock(pthread_rwlock_t *rwlock);256 int pthread_rwlock_timedwrlock(pthread_rwlock_t *rwlock, const struct timespec *abs_timeout);258 int pthread_rwlock_unlock(pthread_rwlock_t *rwlock);