/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/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/musl/src/include/ |
D | pthread.h | 21 hidden int __pthread_rwlock_rdlock(pthread_rwlock_t *); 22 hidden int __pthread_rwlock_tryrdlock(pthread_rwlock_t *); 23 hidden int __pthread_rwlock_timedrdlock(pthread_rwlock_t *__restrict, const struct timespec *__rest… 24 hidden int __pthread_rwlock_wrlock(pthread_rwlock_t *); 25 hidden int __pthread_rwlock_trywrlock(pthread_rwlock_t *); 26 hidden int __pthread_rwlock_timedwrlock(pthread_rwlock_t *__restrict, const struct timespec *__rest… 27 hidden int __pthread_rwlock_unlock(pthread_rwlock_t *);
|
/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/cronet/third_party/boringssl/src/crypto/ |
D | thread_pthread.c | 26 static_assert(sizeof(CRYPTO_MUTEX) >= sizeof(pthread_rwlock_t), 28 static_assert(alignof(CRYPTO_MUTEX) >= alignof(pthread_rwlock_t), 32 if (pthread_rwlock_init((pthread_rwlock_t *) lock, NULL) != 0) { in CRYPTO_MUTEX_init() 38 if (pthread_rwlock_rdlock((pthread_rwlock_t *) lock) != 0) { in CRYPTO_MUTEX_lock_read() 44 if (pthread_rwlock_wrlock((pthread_rwlock_t *) lock) != 0) { in CRYPTO_MUTEX_lock_write() 50 if (pthread_rwlock_unlock((pthread_rwlock_t *) lock) != 0) { in CRYPTO_MUTEX_unlock_read() 56 if (pthread_rwlock_unlock((pthread_rwlock_t *) lock) != 0) { in CRYPTO_MUTEX_unlock_write() 62 pthread_rwlock_destroy((pthread_rwlock_t *) lock); in CRYPTO_MUTEX_cleanup()
|
/external/boringssl/src/crypto/ |
D | thread_pthread.c | 26 static_assert(sizeof(CRYPTO_MUTEX) >= sizeof(pthread_rwlock_t), 28 static_assert(alignof(CRYPTO_MUTEX) >= alignof(pthread_rwlock_t), 32 if (pthread_rwlock_init((pthread_rwlock_t *) lock, NULL) != 0) { in CRYPTO_MUTEX_init() 38 if (pthread_rwlock_rdlock((pthread_rwlock_t *) lock) != 0) { in CRYPTO_MUTEX_lock_read() 44 if (pthread_rwlock_wrlock((pthread_rwlock_t *) lock) != 0) { in CRYPTO_MUTEX_lock_write() 50 if (pthread_rwlock_unlock((pthread_rwlock_t *) lock) != 0) { in CRYPTO_MUTEX_unlock_read() 56 if (pthread_rwlock_unlock((pthread_rwlock_t *) lock) != 0) { in CRYPTO_MUTEX_unlock_write() 62 pthread_rwlock_destroy((pthread_rwlock_t *) lock); in CRYPTO_MUTEX_cleanup()
|
/external/musl/include/ |
D | pthread.h | 124 int pthread_rwlock_init(pthread_rwlock_t *__restrict, const pthread_rwlockattr_t *__restrict); 125 int pthread_rwlock_destroy(pthread_rwlock_t *); 126 int pthread_rwlock_rdlock(pthread_rwlock_t *); 127 int pthread_rwlock_tryrdlock(pthread_rwlock_t *); 128 int pthread_rwlock_timedrdlock(pthread_rwlock_t *__restrict, const struct timespec *__restrict); 129 int pthread_rwlock_wrlock(pthread_rwlock_t *); 130 int pthread_rwlock_trywrlock(pthread_rwlock_t *); 131 int pthread_rwlock_timedwrlock(pthread_rwlock_t *__restrict, const struct timespec *__restrict); 132 int pthread_rwlock_unlock(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/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/rust/crates/libc/src/unix/linux_like/android/b64/ |
D | mod.rs | 129 pub struct pthread_rwlock_t { 203 impl PartialEq for pthread_rwlock_t { 204 fn eq(&self, other: &pthread_rwlock_t) -> bool { 218 impl Eq for pthread_rwlock_t {} 220 impl ::fmt::Debug for pthread_rwlock_t { 233 impl ::hash::Hash for pthread_rwlock_t { 300 pub const PTHREAD_RWLOCK_INITIALIZER: pthread_rwlock_t = pthread_rwlock_t {
|
/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 | 230 #define NL_RW_LOCK(NAME) pthread_rwlock_t (NAME) = PTHREAD_RWLOCK_INITIALIZER 242 static inline void nl_read_lock(pthread_rwlock_t *lock) in nl_read_lock() 247 static inline void nl_read_unlock(pthread_rwlock_t *lock) in nl_read_unlock() 252 static inline void nl_write_lock(pthread_rwlock_t *lock) in nl_write_lock() 257 static inline void nl_write_unlock(pthread_rwlock_t *lock) in nl_write_unlock()
|
/external/musl/src/thread/ |
D | pthread_rwlock_init.c | 3 int pthread_rwlock_init(pthread_rwlock_t *restrict rw, const pthread_rwlockattr_t *restrict a) in pthread_rwlock_init() 5 *rw = (pthread_rwlock_t){0}; in pthread_rwlock_init()
|
D | pthread_rwlock_destroy.c | 3 int pthread_rwlock_destroy(pthread_rwlock_t *rw) in pthread_rwlock_destroy()
|
D | pthread_rwlock_wrlock.c | 3 int __pthread_rwlock_wrlock(pthread_rwlock_t *rw) in __pthread_rwlock_wrlock()
|
D | pthread_rwlock_rdlock.c | 3 int __pthread_rwlock_rdlock(pthread_rwlock_t *rw) in __pthread_rwlock_rdlock()
|
D | pthread_rwlock_trywrlock.c | 3 int __pthread_rwlock_trywrlock(pthread_rwlock_t *rw) in __pthread_rwlock_trywrlock()
|
D | lock_ptc.c | 3 static pthread_rwlock_t lock = PTHREAD_RWLOCK_INITIALIZER;
|
/external/rust/crates/libc/src/unix/linux_like/android/b32/ |
D | mod.rs | 112 pub struct pthread_rwlock_t { 209 pub const PTHREAD_RWLOCK_INITIALIZER: pthread_rwlock_t = pthread_rwlock_t {
|
/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/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/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 static pthread_rwlock_t dummy;
|
/external/musl/compat/time32/ |
D | pthread_rwlock_timedwrlock_time32.c | 5 int __pthread_rwlock_timedwrlock_time32(pthread_rwlock_t *restrict rw, const struct timespec32 *res… in __pthread_rwlock_timedwrlock_time32()
|