Searched refs:pthread_rwlock_t (Results 1 - 6 of 6) sorted by last modified time

/bionic/benchmarks/
H A Dpthread_benchmark.cpp99 pthread_rwlock_t lock;
112 pthread_rwlock_t lock;
/bionic/libc/bionic/
H A Dpthread_rwlock.cpp214 static_assert(sizeof(pthread_rwlock_t) == sizeof(pthread_rwlock_internal_t),
215 "pthread_rwlock_t should actually be pthread_rwlock_internal_t in implementation.");
217 // For binary compatibility with old version of pthread_rwlock_t, we can't use more strict
219 static_assert(alignof(pthread_rwlock_t) == 4,
220 "pthread_rwlock_t should fulfill the alignment requirement of pthread_rwlock_internal_t.");
222 static inline __always_inline pthread_rwlock_internal_t* __get_internal_rwlock(pthread_rwlock_t* rwlock_interface) {
226 int pthread_rwlock_init(pthread_rwlock_t* rwlock_interface, const pthread_rwlockattr_t* attr) {
254 int pthread_rwlock_destroy(pthread_rwlock_t* rwlock_interface) {
412 int pthread_rwlock_rdlock(pthread_rwlock_t* rwlock_interface) {
421 int pthread_rwlock_timedrdlock(pthread_rwlock_t* rwlock_interfac
[all...]
/bionic/libc/include/
H A Dpthread.h82 } pthread_rwlock_t; typedef in typeref:struct:__anon58
221 int pthread_rwlock_destroy(pthread_rwlock_t*) __nonnull((1));
222 int pthread_rwlock_init(pthread_rwlock_t*, const pthread_rwlockattr_t*) __nonnull((1));
223 int pthread_rwlock_rdlock(pthread_rwlock_t*) __nonnull((1));
224 int pthread_rwlock_timedrdlock(pthread_rwlock_t*, const struct timespec*) __nonnull((1, 2));
225 int pthread_rwlock_timedwrlock(pthread_rwlock_t*, const struct timespec*) __nonnull((1, 2));
226 int pthread_rwlock_tryrdlock(pthread_rwlock_t*) __nonnull((1));
227 int pthread_rwlock_trywrlock(pthread_rwlock_t*) __nonnull((1));
228 int pthread_rwlock_unlock(pthread_rwlock_t *) __nonnull((1));
229 int pthread_rwlock_wrlock(pthread_rwlock_t*) __nonnul
[all...]
/bionic/libc/include/sys/
H A Dtypes.h113 typedef .... pthread_rwlock_t;
/bionic/libc/upstream-netbsd/android/include/
H A Dreentrant.h35 #define rwlock_t pthread_rwlock_t
/bionic/tests/
H A Dpthread_test.cpp665 pthread_rwlock_t lock1 = PTHREAD_RWLOCK_INITIALIZER;
666 pthread_rwlock_t lock2;
672 pthread_rwlock_t l;
720 pthread_rwlock_t lock;
730 std::function<int (pthread_rwlock_t*)> trylock_function;
731 std::function<int (pthread_rwlock_t*)> lock_function;
732 std::function<int (pthread_rwlock_t*, const timespec*)> timed_lock_function;
748 static void test_pthread_rwlock_reader_wakeup_writer(std::function<int (pthread_rwlock_t*)> lock_function) {
779 test_pthread_rwlock_reader_wakeup_writer([&](pthread_rwlock_t* lock) {
784 static void test_pthread_rwlock_writer_wakeup_reader(std::function<int (pthread_rwlock_t*)> lock_functio
[all...]

Completed in 176 milliseconds