Home
last modified time | relevance | path

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

123456

/external/llvm/lib/Support/
DRWMutex.cpp50 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/
DRWMutex.cpp44 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/
Dpthread.h21 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/
Dthread_pthread.c27 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/
Dthread_pthread.c26 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/
Dthread_pthread.c26 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/
Dpthread.h124 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/
Dtsan_test_util_posix.cc73 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/
Dno_align.rs36 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 {
Dalign.rs55 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/
Dmod.rs129 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/
Ddd_interceptors.cc100 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/
Dnetlink.h230 #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/
Dpthread_rwlock_init.c3 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()
Dpthread_rwlock_destroy.c3 int pthread_rwlock_destroy(pthread_rwlock_t *rw) in pthread_rwlock_destroy()
Dpthread_rwlock_wrlock.c3 int __pthread_rwlock_wrlock(pthread_rwlock_t *rw) in __pthread_rwlock_wrlock()
Dpthread_rwlock_rdlock.c3 int __pthread_rwlock_rdlock(pthread_rwlock_t *rw) in __pthread_rwlock_rdlock()
Dpthread_rwlock_trywrlock.c3 int __pthread_rwlock_trywrlock(pthread_rwlock_t *rw) in __pthread_rwlock_trywrlock()
Dlock_ptc.c3 static pthread_rwlock_t lock = PTHREAD_RWLOCK_INITIALIZER;
/external/rust/crates/libc/src/unix/linux_like/android/b32/
Dmod.rs112 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/
D5-1.c52 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/
D5-1.c45 pthread_rwlock_t rwlock; in fn_rd_1()
90 pthread_rwlock_t rwlock; in fn_rd_2()
/external/llvm/test/CodeGen/PowerPC/
D2008-03-24-CoalescerBug.ll6 …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/
D3-10-buildonly.c13 static pthread_rwlock_t dummy;
/external/musl/compat/time32/
Dpthread_rwlock_timedwrlock_time32.c5 int __pthread_rwlock_timedwrlock_time32(pthread_rwlock_t *restrict rw, const struct timespec32 *res… in __pthread_rwlock_timedwrlock_time32()

123456