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.h276 extern pthread_rwlock_t g_thread_creation_lock;
Dpthread_create.cpp395 pthread_rwlock_t g_thread_creation_lock = PTHREAD_RWLOCK_INITIALIZER;
/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/include/
Dpthread.h220 int pthread_rwlock_clockrdlock(pthread_rwlock_t* _Nonnull __rwlock, clockid_t __clock,
222 int pthread_rwlock_clockwrlock(pthread_rwlock_t* _Nonnull __rwlock, clockid_t __clock,
224 int pthread_rwlock_destroy(pthread_rwlock_t* _Nonnull __rwlock);
225 int pthread_rwlock_init(pthread_rwlock_t* _Nonnull __rwlock, const pthread_rwlockattr_t* _Nullable …
226 int pthread_rwlock_rdlock(pthread_rwlock_t* _Nonnull __rwlock);
227 int pthread_rwlock_timedrdlock(pthread_rwlock_t* _Nonnull __rwlock, const struct timespec* _Nullabl…
229 int pthread_rwlock_timedrdlock_monotonic_np(pthread_rwlock_t* _Nonnull __rwlock,
231 int pthread_rwlock_timedwrlock(pthread_rwlock_t* _Nonnull __rwlock, const struct timespec* _Nullabl…
233 int pthread_rwlock_timedwrlock_monotonic_np(pthread_rwlock_t* _Nonnull __rwlock,
235 int pthread_rwlock_tryrdlock(pthread_rwlock_t* _Nonnull __rwlock);
[all …]
/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.cpp889 pthread_rwlock_t lock1 = PTHREAD_RWLOCK_INITIALIZER; in TEST()
890 pthread_rwlock_t lock2; in TEST()
896 pthread_rwlock_t l; in TEST()
944 pthread_rwlock_t lock;
954 std::function<int (pthread_rwlock_t*)> trylock_function;
955 std::function<int (pthread_rwlock_t*)> lock_function;
956 std::function<int (pthread_rwlock_t*, const timespec*)> timed_lock_function;
973 static void test_pthread_rwlock_reader_wakeup_writer(std::function<int (pthread_rwlock_t*)> lock_fu… in test_pthread_rwlock_reader_wakeup_writer()
1004 test_pthread_rwlock_reader_wakeup_writer([&](pthread_rwlock_t* lock) { in TEST()
1015 [&](pthread_rwlock_t* lock) { return pthread_rwlock_timedwrlock_monotonic_np(lock, &ts); }); in TEST()
[all …]
/bionic/libc/include/bits/
Dpthread_types.h90 } pthread_rwlock_t; typedef
/bionic/benchmarks/
Dpthread_benchmark.cpp152 pthread_rwlock_t lock; in BM_pthread_rwlock_read()
165 pthread_rwlock_t lock; in BM_pthread_rwlock_write()
/bionic/libc/malloc_debug/
Dmalloc_debug.cpp229 static pthread_rwlock_t lock_;
231 pthread_rwlock_t ScopedConcurrentLock::lock_;