Home
last modified time | relevance | path

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

/bionic/libc/bionic/
Dpthread_rwlock.cpp214 static_assert(sizeof(pthread_rwlock_t) == sizeof(pthread_rwlock_internal_t),
219 static_assert(alignof(pthread_rwlock_t) == 4,
222 static inline __always_inline pthread_rwlock_internal_t* __get_internal_rwlock(pthread_rwlock_t* rw… in __get_internal_rwlock()
226 int pthread_rwlock_init(pthread_rwlock_t* rwlock_interface, const pthread_rwlockattr_t* attr) { in pthread_rwlock_init()
254 int pthread_rwlock_destroy(pthread_rwlock_t* rwlock_interface) { in pthread_rwlock_destroy()
410 int pthread_rwlock_rdlock(pthread_rwlock_t* rwlock_interface) { in pthread_rwlock_rdlock()
419 int pthread_rwlock_timedrdlock(pthread_rwlock_t* rwlock_interface, const timespec* abs_timeout) { in pthread_rwlock_timedrdlock()
425 int pthread_rwlock_timedrdlock_monotonic_np(pthread_rwlock_t* rwlock_interface, in pthread_rwlock_timedrdlock_monotonic_np()
432 int pthread_rwlock_clockrdlock(pthread_rwlock_t* rwlock_interface, clockid_t clock, in pthread_rwlock_clockrdlock()
444 int pthread_rwlock_tryrdlock(pthread_rwlock_t* rwlock_interface) { in pthread_rwlock_tryrdlock()
[all …]
Dpthread_internal.cpp46 static pthread_rwlock_t g_thread_list_lock = PTHREAD_RWLOCK_INITIALIZER;
Dpthread_internal.h253 extern pthread_rwlock_t g_thread_creation_lock;
Dpthread_create.cpp377 pthread_rwlock_t g_thread_creation_lock = PTHREAD_RWLOCK_INITIALIZER;
/bionic/libc/include/
Dpthread.h237 int pthread_rwlock_clockrdlock(pthread_rwlock_t* __rwlock, clockid_t __clock,
239 int pthread_rwlock_clockwrlock(pthread_rwlock_t* __rwlock, clockid_t __clock,
241 int pthread_rwlock_destroy(pthread_rwlock_t* __rwlock);
242 int pthread_rwlock_init(pthread_rwlock_t* __rwlock, const pthread_rwlockattr_t* __attr);
243 int pthread_rwlock_rdlock(pthread_rwlock_t* __rwlock);
244 int pthread_rwlock_timedrdlock(pthread_rwlock_t* __rwlock, const struct timespec* __timeout);
246 int pthread_rwlock_timedrdlock_monotonic_np(pthread_rwlock_t* __rwlock,
248 int pthread_rwlock_timedwrlock(pthread_rwlock_t* __rwlock, const struct timespec* __timeout);
250 int pthread_rwlock_timedwrlock_monotonic_np(pthread_rwlock_t* __rwlock,
252 int pthread_rwlock_tryrdlock(pthread_rwlock_t* __rwlock);
[all …]
/bionic/tests/headers/posix/
Dpthread_h.c73 pthread_rwlock_t rw0 = PTHREAD_RWLOCK_INITIALIZER; in pthread_h()
84 TYPE(pthread_rwlock_t); in pthread_h()
179 FUNCTION(pthread_rwlock_destroy, int (*f)(pthread_rwlock_t*)); in pthread_h()
180 FUNCTION(pthread_rwlock_init, int (*f)(pthread_rwlock_t*, const pthread_rwlockattr_t*)); in pthread_h()
181 FUNCTION(pthread_rwlock_rdlock, int (*f)(pthread_rwlock_t*)); in pthread_h()
182 FUNCTION(pthread_rwlock_timedrdlock, int (*f)(pthread_rwlock_t*, const struct timespec*)); in pthread_h()
183 FUNCTION(pthread_rwlock_timedwrlock, int (*f)(pthread_rwlock_t*, const struct timespec*)); in pthread_h()
184 FUNCTION(pthread_rwlock_tryrdlock, int (*f)(pthread_rwlock_t*)); in pthread_h()
185 FUNCTION(pthread_rwlock_trywrlock, int (*f)(pthread_rwlock_t*)); in pthread_h()
186 FUNCTION(pthread_rwlock_unlock, int (*f)(pthread_rwlock_t*)); in pthread_h()
[all …]
Dsys_types_h.c58 TYPE(pthread_rwlock_t); in sys_types_h()
/bionic/libc/private/
DScopedRWLock.h37 explicit ScopedRWLock(pthread_rwlock_t* rwlock) : rwlock_(rwlock) { in ScopedRWLock()
46 pthread_rwlock_t* rwlock_;
Dbionic_elf_tls.h138 pthread_rwlock_t rwlock = PTHREAD_RWLOCK_INITIALIZER;
/bionic/tests/
Dpthread_test.cpp860 pthread_rwlock_t lock1 = PTHREAD_RWLOCK_INITIALIZER; in TEST()
861 pthread_rwlock_t lock2; in TEST()
867 pthread_rwlock_t l; in TEST()
915 pthread_rwlock_t lock;
925 std::function<int (pthread_rwlock_t*)> trylock_function;
926 std::function<int (pthread_rwlock_t*)> lock_function;
927 std::function<int (pthread_rwlock_t*, const timespec*)> timed_lock_function;
944 static void test_pthread_rwlock_reader_wakeup_writer(std::function<int (pthread_rwlock_t*)> lock_fu… in test_pthread_rwlock_reader_wakeup_writer()
975 test_pthread_rwlock_reader_wakeup_writer([&](pthread_rwlock_t* lock) { in TEST()
986 [&](pthread_rwlock_t* lock) { return pthread_rwlock_timedwrlock_monotonic_np(lock, &ts); }); in TEST()
[all …]
/bionic/benchmarks/
Dpthread_benchmark.cpp148 pthread_rwlock_t lock; in BM_pthread_rwlock_read()
161 pthread_rwlock_t lock; in BM_pthread_rwlock_write()
/bionic/libc/include/bits/
Dpthread_types.h90 } pthread_rwlock_t; typedef
/bionic/libc/malloc_debug/
Dmalloc_debug.cpp133 static pthread_rwlock_t lock_;
135 pthread_rwlock_t ScopedConcurrentLock::lock_;