Searched refs:rwlock (Results 1 – 6 of 6) sorted by relevance
/bionic/libc/bionic/ |
D | pthread_rwlock.cpp | 227 pthread_rwlock_internal_t* rwlock = __get_internal_rwlock(rwlock_interface); in pthread_rwlock_init() local 229 memset(rwlock, 0, sizeof(pthread_rwlock_internal_t)); in pthread_rwlock_init() 232 rwlock->pshared = __rwlockattr_getpshared(attr); in pthread_rwlock_init() 236 rwlock->writer_nonrecursive_preferred = false; in pthread_rwlock_init() 239 rwlock->writer_nonrecursive_preferred = true; in pthread_rwlock_init() 249 atomic_init(&rwlock->state, 0); in pthread_rwlock_init() 250 rwlock->pending_lock.init(rwlock->pshared); in pthread_rwlock_init() 255 pthread_rwlock_internal_t* rwlock = __get_internal_rwlock(rwlock_interface); in pthread_rwlock_destroy() local 257 if (atomic_load_explicit(&rwlock->state, memory_order_relaxed) != 0) { in pthread_rwlock_destroy() 272 static inline __always_inline int __pthread_rwlock_tryrdlock(pthread_rwlock_internal_t* rwlock) { in __pthread_rwlock_tryrdlock() argument [all …]
|
D | bionic_elf_tls.cpp | 185 ScopedReadLock locker(&modules.rwlock); in __init_static_tls() 286 ScopedWriteLock locker(&modules.rwlock); in tls_get_addr_slow_path() 346 ScopedWriteLock locker(&modules.rwlock); in __free_dynamic_tls()
|
/bionic/libc/private/ |
D | ScopedRWLock.h | 37 explicit ScopedRWLock(pthread_rwlock_t* rwlock) : rwlock_(rwlock) { in ScopedRWLock() argument
|
D | bionic_elf_tls.h | 126 pthread_rwlock_t rwlock = PTHREAD_RWLOCK_INITIALIZER; member
|
/bionic/linker/ |
D | linker_tls.cpp | 64 ScopedWriteLock locker(&libc_modules.rwlock); in register_tls_module() 87 ScopedWriteLock locker(&__libc_shared_globals()->tls_modules.rwlock); in unregister_tls_module()
|
/bionic/tests/ |
D | pthread_test.cpp | 2544 pthread_rwlock_t* rwlock = reinterpret_cast<pthread_rwlock_t*>( in TEST() local 2546 ASSERT_EQ(0, pthread_rwlock_init(rwlock, nullptr)); in TEST() 2547 ASSERT_EQ(0, pthread_rwlock_rdlock(rwlock)); in TEST() 2548 ASSERT_EQ(0, pthread_rwlock_unlock(rwlock)); in TEST() 2549 ASSERT_EQ(0, pthread_rwlock_wrlock(rwlock)); in TEST() 2550 ASSERT_EQ(0, pthread_rwlock_unlock(rwlock)); in TEST() 2551 ASSERT_EQ(0, pthread_rwlock_destroy(rwlock)); in TEST()
|