/external/llvm/lib/Support/ |
D | RWMutex.cpp | 50 pthread_rwlock_t* rwlock = in RWMutexImpl() 51 static_cast<pthread_rwlock_t*>(malloc(sizeof(pthread_rwlock_t))); in RWMutexImpl() 55 bzero(rwlock, sizeof(pthread_rwlock_t)); in RWMutexImpl() 70 pthread_rwlock_t* rwlock = static_cast<pthread_rwlock_t*>(data_); in ~RWMutexImpl() 79 pthread_rwlock_t* rwlock = static_cast<pthread_rwlock_t*>(data_); in reader_acquire() 89 pthread_rwlock_t* rwlock = static_cast<pthread_rwlock_t*>(data_); in reader_release() 99 pthread_rwlock_t* rwlock = static_cast<pthread_rwlock_t*>(data_); in writer_acquire() 109 pthread_rwlock_t* rwlock = static_cast<pthread_rwlock_t*>(data_); in writer_release()
|
/external/llvm-project/llvm/lib/Support/ |
D | RWMutex.cpp | 44 pthread_rwlock_t* rwlock = in RWMutexImpl() 45 static_cast<pthread_rwlock_t*>(safe_malloc(sizeof(pthread_rwlock_t))); in RWMutexImpl() 49 bzero(rwlock, sizeof(pthread_rwlock_t)); in RWMutexImpl() 64 pthread_rwlock_t* rwlock = static_cast<pthread_rwlock_t*>(data_); in ~RWMutexImpl() 73 pthread_rwlock_t* rwlock = static_cast<pthread_rwlock_t*>(data_); in lock_shared() 83 pthread_rwlock_t* rwlock = static_cast<pthread_rwlock_t*>(data_); in unlock_shared() 93 pthread_rwlock_t* rwlock = static_cast<pthread_rwlock_t*>(data_); in lock() 103 pthread_rwlock_t* rwlock = static_cast<pthread_rwlock_t*>(data_); in unlock()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Support/ |
D | RWMutex.cpp | 44 pthread_rwlock_t* rwlock = in RWMutexImpl() 45 static_cast<pthread_rwlock_t*>(safe_malloc(sizeof(pthread_rwlock_t))); in RWMutexImpl() 49 bzero(rwlock, sizeof(pthread_rwlock_t)); in RWMutexImpl() 64 pthread_rwlock_t* rwlock = static_cast<pthread_rwlock_t*>(data_); in ~RWMutexImpl() 73 pthread_rwlock_t* rwlock = static_cast<pthread_rwlock_t*>(data_); in lock_shared() 83 pthread_rwlock_t* rwlock = static_cast<pthread_rwlock_t*>(data_); in unlock_shared() 93 pthread_rwlock_t* rwlock = static_cast<pthread_rwlock_t*>(data_); in lock() 103 pthread_rwlock_t* rwlock = static_cast<pthread_rwlock_t*>(data_); in unlock()
|
/external/llvm-project/compiler-rt/lib/tsan/tests/rtl/ |
D | tsan_posix_util.h | 60 pthread_rwlock_t *rwlock, const pthread_rwlockattr_t *attr); 61 extern "C" int __interceptor_pthread_rwlock_destroy(pthread_rwlock_t *rwlock); 62 extern "C" int __interceptor_pthread_rwlock_trywrlock(pthread_rwlock_t *rwlock); 63 extern "C" int __interceptor_pthread_rwlock_wrlock(pthread_rwlock_t *rwlock); 64 extern "C" int __interceptor_pthread_rwlock_unlock(pthread_rwlock_t *rwlock); 65 extern "C" int __interceptor_pthread_rwlock_rdlock(pthread_rwlock_t *rwlock); 66 extern "C" int __interceptor_pthread_rwlock_tryrdlock(pthread_rwlock_t *rwlock);
|
D | tsan_test_util_posix.cpp | 112 CHECK_EQ(__interceptor_pthread_rwlock_init((pthread_rwlock_t*)mtx_, 0), 0); in Init() 135 CHECK_EQ(__interceptor_pthread_rwlock_destroy((pthread_rwlock_t*)mtx_), 0); in Destroy() 147 CHECK_EQ(__interceptor_pthread_rwlock_wrlock((pthread_rwlock_t*)mtx_), 0); in Lock() 159 return __interceptor_pthread_rwlock_trywrlock((pthread_rwlock_t*)mtx_) == 0; in TryLock() 172 CHECK_EQ(__interceptor_pthread_rwlock_unlock((pthread_rwlock_t*)mtx_), 0); in Unlock() 178 CHECK_EQ(__interceptor_pthread_rwlock_rdlock((pthread_rwlock_t*)mtx_), 0); in ReadLock() 184 return __interceptor_pthread_rwlock_tryrdlock((pthread_rwlock_t*)mtx_) == 0; in TryReadLock() 190 CHECK_EQ(__interceptor_pthread_rwlock_unlock((pthread_rwlock_t*)mtx_), 0); in ReadUnlock()
|
/external/rust/crates/quiche/deps/boringssl/src/crypto/ |
D | thread_pthread.c | 27 OPENSSL_STATIC_ASSERT(sizeof(CRYPTO_MUTEX) >= sizeof(pthread_rwlock_t), 30 OPENSSL_STATIC_ASSERT(alignof(CRYPTO_MUTEX) >= alignof(pthread_rwlock_t), 35 if (pthread_rwlock_init((pthread_rwlock_t *) lock, NULL) != 0) { in CRYPTO_MUTEX_init() 41 if (pthread_rwlock_rdlock((pthread_rwlock_t *) lock) != 0) { in CRYPTO_MUTEX_lock_read() 47 if (pthread_rwlock_wrlock((pthread_rwlock_t *) lock) != 0) { in CRYPTO_MUTEX_lock_write() 53 if (pthread_rwlock_unlock((pthread_rwlock_t *) lock) != 0) { in CRYPTO_MUTEX_unlock_read() 59 if (pthread_rwlock_unlock((pthread_rwlock_t *) lock) != 0) { in CRYPTO_MUTEX_unlock_write() 65 pthread_rwlock_destroy((pthread_rwlock_t *) lock); in CRYPTO_MUTEX_cleanup()
|
/external/boringssl/src/crypto/ |
D | thread_pthread.c | 27 OPENSSL_STATIC_ASSERT(sizeof(CRYPTO_MUTEX) >= sizeof(pthread_rwlock_t), 30 OPENSSL_STATIC_ASSERT(alignof(CRYPTO_MUTEX) >= alignof(pthread_rwlock_t), 35 if (pthread_rwlock_init((pthread_rwlock_t *) lock, NULL) != 0) { in CRYPTO_MUTEX_init() 41 if (pthread_rwlock_rdlock((pthread_rwlock_t *) lock) != 0) { in CRYPTO_MUTEX_lock_read() 47 if (pthread_rwlock_wrlock((pthread_rwlock_t *) lock) != 0) { in CRYPTO_MUTEX_lock_write() 53 if (pthread_rwlock_unlock((pthread_rwlock_t *) lock) != 0) { in CRYPTO_MUTEX_unlock_read() 59 if (pthread_rwlock_unlock((pthread_rwlock_t *) lock) != 0) { in CRYPTO_MUTEX_unlock_write() 65 pthread_rwlock_destroy((pthread_rwlock_t *) lock); in CRYPTO_MUTEX_cleanup()
|
/external/llvm-project/libunwind/src/ |
D | RWMutex.hpp | 72 pthread_rwlock_t _lock = PTHREAD_RWLOCK_INITIALIZER; 81 pthread_rwlock_rdlock(pthread_rwlock_t *lock); 83 pthread_rwlock_wrlock(pthread_rwlock_t *lock); 85 pthread_rwlock_unlock(pthread_rwlock_t *lock); 107 pthread_rwlock_t _lock = PTHREAD_RWLOCK_INITIALIZER;
|
/external/rust/crates/libc/src/fuchsia/ |
D | no_align.rs | 36 pub struct pthread_rwlock_t { 102 impl PartialEq for pthread_rwlock_t { 103 fn eq(&self, other: &pthread_rwlock_t) -> bool { 111 impl Eq for pthread_rwlock_t {} 112 impl ::fmt::Debug for pthread_rwlock_t { 120 impl ::hash::Hash for pthread_rwlock_t {
|
D | align.rs | 55 pub struct pthread_rwlock_t { 118 impl PartialEq for pthread_rwlock_t { 119 fn eq(&self, other: &pthread_rwlock_t) -> bool { 126 impl Eq for pthread_rwlock_t {} 127 impl ::fmt::Debug for pthread_rwlock_t { 134 impl ::hash::Hash for pthread_rwlock_t {
|
/external/compiler-rt/lib/tsan/tests/rtl/ |
D | tsan_test_util_posix.cc | 73 pthread_rwlock_t *rwlock, const pthread_rwlockattr_t *attr); 74 extern "C" int __interceptor_pthread_rwlock_destroy(pthread_rwlock_t *rwlock); 75 extern "C" int __interceptor_pthread_rwlock_trywrlock(pthread_rwlock_t *rwlock); 76 extern "C" int __interceptor_pthread_rwlock_wrlock(pthread_rwlock_t *rwlock); 77 extern "C" int __interceptor_pthread_rwlock_unlock(pthread_rwlock_t *rwlock); 78 extern "C" int __interceptor_pthread_rwlock_rdlock(pthread_rwlock_t *rwlock); 79 extern "C" int __interceptor_pthread_rwlock_tryrdlock(pthread_rwlock_t *rwlock); 156 CHECK_EQ(__interceptor_pthread_rwlock_init((pthread_rwlock_t*)mtx_, 0), 0); in Init() 179 CHECK_EQ(__interceptor_pthread_rwlock_destroy((pthread_rwlock_t*)mtx_), 0); in Destroy() 191 CHECK_EQ(__interceptor_pthread_rwlock_wrlock((pthread_rwlock_t*)mtx_), 0); in Lock() [all …]
|
/external/rust/crates/libc/src/unix/linux_like/android/b64/ |
D | mod.rs | 121 pub struct pthread_rwlock_t { 195 impl PartialEq for pthread_rwlock_t { 196 fn eq(&self, other: &pthread_rwlock_t) -> bool { 210 impl Eq for pthread_rwlock_t {} 212 impl ::fmt::Debug for pthread_rwlock_t { 225 impl ::hash::Hash for pthread_rwlock_t { 292 pub const PTHREAD_RWLOCK_INITIALIZER: pthread_rwlock_t = pthread_rwlock_t {
|
/external/llvm-project/compiler-rt/lib/tsan/dd/ |
D | dd_interceptors.cpp | 99 INTERCEPTOR(int, pthread_rwlock_destroy, pthread_rwlock_t *m) { in INTERCEPTOR() 105 INTERCEPTOR(int, pthread_rwlock_rdlock, pthread_rwlock_t *m) { in INTERCEPTOR() 113 INTERCEPTOR(int, pthread_rwlock_tryrdlock, pthread_rwlock_t *m) { in INTERCEPTOR() 121 INTERCEPTOR(int, pthread_rwlock_timedrdlock, pthread_rwlock_t *m, in INTERCEPTOR() 130 INTERCEPTOR(int, pthread_rwlock_wrlock, pthread_rwlock_t *m) { in INTERCEPTOR() 138 INTERCEPTOR(int, pthread_rwlock_trywrlock, pthread_rwlock_t *m) { in INTERCEPTOR() 146 INTERCEPTOR(int, pthread_rwlock_timedwrlock, pthread_rwlock_t *m, in INTERCEPTOR() 155 INTERCEPTOR(int, pthread_rwlock_unlock, pthread_rwlock_t *m) { in INTERCEPTOR()
|
/external/compiler-rt/lib/tsan/dd/ |
D | dd_interceptors.cc | 100 INTERCEPTOR(int, pthread_rwlock_destroy, pthread_rwlock_t *m) { in INTERCEPTOR() 106 INTERCEPTOR(int, pthread_rwlock_rdlock, pthread_rwlock_t *m) { in INTERCEPTOR() 114 INTERCEPTOR(int, pthread_rwlock_tryrdlock, pthread_rwlock_t *m) { in INTERCEPTOR() 122 INTERCEPTOR(int, pthread_rwlock_timedrdlock, pthread_rwlock_t *m, in INTERCEPTOR() 131 INTERCEPTOR(int, pthread_rwlock_wrlock, pthread_rwlock_t *m) { in INTERCEPTOR() 139 INTERCEPTOR(int, pthread_rwlock_trywrlock, pthread_rwlock_t *m) { in INTERCEPTOR() 147 INTERCEPTOR(int, pthread_rwlock_timedwrlock, pthread_rwlock_t *m, in INTERCEPTOR() 156 INTERCEPTOR(int, pthread_rwlock_unlock, pthread_rwlock_t *m) { in INTERCEPTOR()
|
/external/libnl/include/netlink-private/ |
D | netlink.h | 235 #define NL_RW_LOCK(NAME) pthread_rwlock_t (NAME) = PTHREAD_RWLOCK_INITIALIZER 247 static inline void nl_read_lock(pthread_rwlock_t *lock) in nl_read_lock() 252 static inline void nl_read_unlock(pthread_rwlock_t *lock) in nl_read_unlock() 257 static inline void nl_write_lock(pthread_rwlock_t *lock) in nl_write_lock() 262 static inline void nl_write_unlock(pthread_rwlock_t *lock) in nl_write_unlock()
|
/external/rust/crates/libc/src/unix/linux_like/android/b32/ |
D | mod.rs | 111 pub struct pthread_rwlock_t { 202 pub const PTHREAD_RWLOCK_INITIALIZER: pthread_rwlock_t = pthread_rwlock_t {
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedrdlock/ |
D | 5-1.c | 45 pthread_rwlock_t rwlock; in fn_rd_1() 90 pthread_rwlock_t rwlock; in fn_rd_2()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedwrlock/ |
D | 5-1.c | 52 pthread_rwlock_t rwlock; in fn_wr_1() 97 pthread_rwlock_t rwlock; in fn_wr_2()
|
/external/llvm/test/CodeGen/PowerPC/ |
D | 2008-03-24-CoalescerBug.ll | 6 …t.NSMutableArray*, i8, %struct.pthread_mutex_t, %struct.NSMutableArray*, %struct.pthread_rwlock_t } 14 %struct.pthread_rwlock_t = type { i32, [124 x i8] }
|
/external/llvm-project/llvm/test/CodeGen/PowerPC/ |
D | 2008-03-24-CoalescerBug.ll | 6 …t.NSMutableArray*, i8, %struct.pthread_mutex_t, %struct.NSMutableArray*, %struct.pthread_rwlock_t } 14 %struct.pthread_rwlock_t = type { i32, [124 x i8] }
|
/external/ltp/testcases/open_posix_testsuite/conformance/definitions/pthread_h/ |
D | 3-10-buildonly.c | 13 pthread_rwlock_t dummy;
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_unlock/ |
D | 4-1.c | 31 static pthread_rwlock_t rwlock; in main()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_destroy/ |
D | 1-1.c | 25 pthread_rwlock_t rwlock; in main()
|
/external/compiler-rt/test/tsan/ |
D | bench_rwmutex.cc | 9 pthread_rwlock_t mtx;
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_trywrlock/speculative/ |
D | 3-1.c | 26 static pthread_rwlock_t rwlock; in main()
|