Home
last modified time | relevance | path

Searched defs:rwlock (Results 1 – 2 of 2) sorted by relevance

/bionic/libc/bionic/
Dpthread-rwlocks.c112 int pthread_rwlock_init(pthread_rwlock_t *rwlock, const pthread_rwlockattr_t *attr) in pthread_rwlock_init()
151 int pthread_rwlock_destroy(pthread_rwlock_t *rwlock) in pthread_rwlock_destroy()
167 static __inline__ int read_precondition(pthread_rwlock_t *rwlock, int thread_id) in read_precondition()
185 static __inline__ int write_precondition(pthread_rwlock_t *rwlock, int thread_id) in write_precondition()
203 static void _pthread_rwlock_pulse(pthread_rwlock_t *rwlock) in _pthread_rwlock_pulse()
210 int pthread_rwlock_rdlock(pthread_rwlock_t *rwlock) in pthread_rwlock_rdlock()
215 int pthread_rwlock_tryrdlock(pthread_rwlock_t *rwlock) in pthread_rwlock_tryrdlock()
232 int pthread_rwlock_timedrdlock(pthread_rwlock_t *rwlock, const struct timespec *abs_timeout) in pthread_rwlock_timedrdlock()
257 int pthread_rwlock_wrlock(pthread_rwlock_t *rwlock) in pthread_rwlock_wrlock()
262 int pthread_rwlock_trywrlock(pthread_rwlock_t *rwlock) in pthread_rwlock_trywrlock()
[all …]
/bionic/libc/kernel/common/linux/
Dspinlock.h50 #define _raw_read_lock(rwlock) __raw_read_lock(&(rwlock)->raw_lock) argument
51 #define _raw_read_trylock(rwlock) __raw_read_trylock(&(rwlock)->raw_lock) argument
52 #define _raw_read_unlock(rwlock) __raw_read_unlock(&(rwlock)->raw_lock) argument
53 #define _raw_write_lock(rwlock) __raw_write_lock(&(rwlock)->raw_lock) argument
54 #define _raw_write_trylock(rwlock) __raw_write_trylock(&(rwlock)->raw_lock) argument
55 #define _raw_write_unlock(rwlock) __raw_write_unlock(&(rwlock)->raw_lock) argument
57 #define read_can_lock(rwlock) __raw_read_can_lock(&(rwlock)->raw_lock) argument
58 #define write_can_lock(rwlock) __raw_write_can_lock(&(rwlock)->raw_lock) argument