Home
last modified time | relevance | path

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

/bionic/libc/bionic/
Dpthread_rwlock.cpp215 static_assert(sizeof(pthread_rwlock_t) == sizeof(pthread_rwlock_internal_t),
220 static_assert(alignof(pthread_rwlock_t) == 4,
223 static inline __always_inline pthread_rwlock_internal_t* __get_internal_rwlock(pthread_rwlock_t* rw… in __get_internal_rwlock()
227 int pthread_rwlock_init(pthread_rwlock_t* rwlock_interface, const pthread_rwlockattr_t* attr) { in pthread_rwlock_init()
255 int pthread_rwlock_destroy(pthread_rwlock_t* rwlock_interface) { in pthread_rwlock_destroy()
411 int pthread_rwlock_rdlock(pthread_rwlock_t* rwlock_interface) { in pthread_rwlock_rdlock()
420 int pthread_rwlock_timedrdlock(pthread_rwlock_t* rwlock_interface, const timespec* abs_timeout) { in pthread_rwlock_timedrdlock()
426 int pthread_rwlock_timedrdlock_monotonic_np(pthread_rwlock_t* rwlock_interface, in pthread_rwlock_timedrdlock_monotonic_np()
433 int pthread_rwlock_clockrdlock(pthread_rwlock_t* rwlock_interface, clockid_t clock, in pthread_rwlock_clockrdlock()
445 int pthread_rwlock_tryrdlock(pthread_rwlock_t* rwlock_interface) { in pthread_rwlock_tryrdlock()
[all …]
Dpthread_internal.h276 extern pthread_rwlock_t g_thread_creation_lock;
Dpthread_internal.cpp47 static pthread_rwlock_t g_thread_list_lock = PTHREAD_RWLOCK_INITIALIZER;
Dpthread_create.cpp394 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.h242 int pthread_rwlock_clockrdlock(pthread_rwlock_t* _Nonnull __rwlock, clockid_t __clock,
244 int pthread_rwlock_clockwrlock(pthread_rwlock_t* _Nonnull __rwlock, clockid_t __clock,
246 int pthread_rwlock_destroy(pthread_rwlock_t* _Nonnull __rwlock);
247 int pthread_rwlock_init(pthread_rwlock_t* _Nonnull __rwlock, const pthread_rwlockattr_t* _Nullable …
248 int pthread_rwlock_rdlock(pthread_rwlock_t* _Nonnull __rwlock);
249 int pthread_rwlock_timedrdlock(pthread_rwlock_t* _Nonnull __rwlock, const struct timespec* _Nullabl…
251 int pthread_rwlock_timedrdlock_monotonic_np(pthread_rwlock_t* _Nonnull __rwlock,
253 int pthread_rwlock_timedwrlock(pthread_rwlock_t* _Nonnull __rwlock, const struct timespec* _Nullabl…
255 int pthread_rwlock_timedwrlock_monotonic_np(pthread_rwlock_t* _Nonnull __rwlock,
257 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.h165 pthread_rwlock_t rwlock = PTHREAD_RWLOCK_INITIALIZER;
/bionic/tests/
Dpthread_test.cpp890 pthread_rwlock_t lock1 = PTHREAD_RWLOCK_INITIALIZER; in TEST()
891 pthread_rwlock_t lock2; in TEST()
897 pthread_rwlock_t l; in TEST()
945 pthread_rwlock_t lock;
955 std::function<int (pthread_rwlock_t*)> trylock_function;
956 std::function<int (pthread_rwlock_t*)> lock_function;
957 std::function<int (pthread_rwlock_t*, const timespec*)> timed_lock_function;
974 static void test_pthread_rwlock_reader_wakeup_writer(std::function<int (pthread_rwlock_t*)> lock_fu… in test_pthread_rwlock_reader_wakeup_writer()
1005 test_pthread_rwlock_reader_wakeup_writer([&](pthread_rwlock_t* lock) { in TEST()
1016 [&](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.cpp230 static pthread_rwlock_t lock_;
232 pthread_rwlock_t ScopedConcurrentLock::lock_;