Home
last modified time | relevance | path

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

123

/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-7.0/llvm/lib/Support/
DRWMutex.cpp52 pthread_rwlock_t* rwlock = in RWMutexImpl()
53 static_cast<pthread_rwlock_t*>(safe_malloc(sizeof(pthread_rwlock_t))); in RWMutexImpl()
57 bzero(rwlock, sizeof(pthread_rwlock_t)); in RWMutexImpl()
72 pthread_rwlock_t* rwlock = static_cast<pthread_rwlock_t*>(data_); in ~RWMutexImpl()
81 pthread_rwlock_t* rwlock = static_cast<pthread_rwlock_t*>(data_); in reader_acquire()
91 pthread_rwlock_t* rwlock = static_cast<pthread_rwlock_t*>(data_); in reader_release()
101 pthread_rwlock_t* rwlock = static_cast<pthread_rwlock_t*>(data_); in writer_acquire()
111 pthread_rwlock_t* rwlock = static_cast<pthread_rwlock_t*>(data_); in writer_release()
/external/swiftshader/third_party/LLVM/lib/Support/
DRWMutex.cpp66 pthread_rwlock_t* rwlock = in RWMutexImpl()
67 static_cast<pthread_rwlock_t*>(malloc(sizeof(pthread_rwlock_t))); in RWMutexImpl()
71 bzero(rwlock, sizeof(pthread_rwlock_t)); in RWMutexImpl()
89 pthread_rwlock_t* rwlock = static_cast<pthread_rwlock_t*>(data_); in ~RWMutexImpl()
101 pthread_rwlock_t* rwlock = static_cast<pthread_rwlock_t*>(data_); in reader_acquire()
114 pthread_rwlock_t* rwlock = static_cast<pthread_rwlock_t*>(data_); in reader_release()
127 pthread_rwlock_t* rwlock = static_cast<pthread_rwlock_t*>(data_); in writer_acquire()
140 pthread_rwlock_t* rwlock = static_cast<pthread_rwlock_t*>(data_); in writer_release()
/external/boringssl/src/crypto/
Dthread_pthread.c27 OPENSSL_STATIC_ASSERT(sizeof(CRYPTO_MUTEX) >= sizeof(pthread_rwlock_t),
31 if (pthread_rwlock_init((pthread_rwlock_t *) lock, NULL) != 0) { in CRYPTO_MUTEX_init()
37 if (pthread_rwlock_rdlock((pthread_rwlock_t *) lock) != 0) { in CRYPTO_MUTEX_lock_read()
43 if (pthread_rwlock_wrlock((pthread_rwlock_t *) lock) != 0) { in CRYPTO_MUTEX_lock_write()
49 if (pthread_rwlock_unlock((pthread_rwlock_t *) lock) != 0) { in CRYPTO_MUTEX_unlock_read()
55 if (pthread_rwlock_unlock((pthread_rwlock_t *) lock) != 0) { in CRYPTO_MUTEX_unlock_write()
61 pthread_rwlock_destroy((pthread_rwlock_t *) lock); in CRYPTO_MUTEX_cleanup()
/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/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.h232 #define NL_RW_LOCK(NAME) pthread_rwlock_t (NAME) = PTHREAD_RWLOCK_INITIALIZER
244 static inline void nl_read_lock(pthread_rwlock_t *lock) in nl_read_lock()
249 static inline void nl_read_unlock(pthread_rwlock_t *lock) in nl_read_unlock()
254 static inline void nl_write_lock(pthread_rwlock_t *lock) in nl_write_lock()
259 static inline void nl_write_unlock(pthread_rwlock_t *lock) in nl_write_unlock()
/external/honggfuzz/libhfcommon/
Dutil.h117 extern void util_mutexRWLockRead(pthread_rwlock_t* mutex, const char* func, int line);
118 extern void util_mutexRWLockWrite(pthread_rwlock_t* mutex, const char* func, int line);
119 extern void util_mutexRWUnlock(pthread_rwlock_t* mutex, const char* func, int line);
Dutil.c262 void util_mutexRWLockRead(pthread_rwlock_t* mutex, const char* func, int line) { in util_mutexRWLockRead()
268 void util_mutexRWLockWrite(pthread_rwlock_t* mutex, const char* func, int line) { in util_mutexRWLockWrite()
274 void util_mutexRWUnlock(pthread_rwlock_t* mutex, const char* func, int line) { in util_mutexRWUnlock()
/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/swiftshader/third_party/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/swiftshader/third_party/llvm-7.0/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 pthread_rwlock_t dummy;
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_unlock/
D4-1.c31 static pthread_rwlock_t rwlock; in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_destroy/
D1-1.c25 pthread_rwlock_t rwlock; in main()
D3-1.c25 pthread_rwlock_t rwlock; in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_trywrlock/speculative/
D3-1.c26 static pthread_rwlock_t rwlock; in main()
/external/webrtc/webrtc/system_wrappers/source/
Drw_lock_posix.h36 pthread_rwlock_t lock_;
/external/compiler-rt/test/tsan/
Dbench_rwmutex.cc9 pthread_rwlock_t mtx;
Dwrite_in_reader_lock.cc4 pthread_rwlock_t rwlock;
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_init/
D6-1.c29 static pthread_rwlock_t rwlock; in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_rdlock/
D5-1.c29 static pthread_rwlock_t rwlock; in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_wrlock/
D3-1.c29 static pthread_rwlock_t rwlock; in main()

123