Home
last modified time | relevance | path

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

123456

/third_party/skia/third_party/externals/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()
/third_party/musl/libc-test/src/functionalext/supplement/thread/thread_gtest/
Dthread_rwlock_test.cpp24 …explicit RwlockHandleControl(std::function<int(pthread_rwlock_t*)> mLock_function, bool mFlag = fa… in RwlockHandleControl()
25 …pid_t mTid = 0, std::function<int(pthread_rwlock_t*)> mTrylock_function = &pthread_rwlock_trywrloc… in RwlockHandleControl()
33 …RwlockHandleControl(std::function<int(pthread_rwlock_t*, const timespec*)> mTimedLockFunction, clo… in RwlockHandleControl() argument
35 std::function<int(pthread_rwlock_t*)> mTrylock_function = &pthread_rwlock_trywrlock) in RwlockHandleControl()
118 pthread_rwlock_t lock_;
122 std::function<int(pthread_rwlock_t*)> tryWrLockTestFunc_;
123 std::function<int(pthread_rwlock_t*)> wrLockTestFunc_;
124 std::function<int(pthread_rwlock_t*, const timespec*)> wrLockTestTimedFunc_;
152 …new RwlockHandleControl([&](pthread_rwlock_t* rwlock) { return pthread_rwlock_timedwrlock(rwlock, … in __anon14ec5bdc0102()
186 …[&](pthread_rwlock_t* rwlock) { return pthread_rwlock_timedwrlock_monotonic_np(rwlock, &times); }); in __anon14ec5bdc0202()
[all …]
/third_party/musl/porting/linux/user/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 *);
/third_party/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 *);
/third_party/musl/ndk_musl_include/
Dpthread.h210 int pthread_rwlock_init(pthread_rwlock_t *__restrict, const pthread_rwlockattr_t *__restrict);
211 int pthread_rwlock_destroy(pthread_rwlock_t *);
212 int pthread_rwlock_rdlock(pthread_rwlock_t *);
213 int pthread_rwlock_tryrdlock(pthread_rwlock_t *);
214 int pthread_rwlock_timedrdlock(pthread_rwlock_t *__restrict, const struct timespec *__restrict);
230 int pthread_rwlock_clockrdlock(pthread_rwlock_t *__restrict, clockid_t, const struct timespec *__re…
245 int pthread_rwlock_timedrdlock_monotonic_np(pthread_rwlock_t *__restrict, const struct timespec *__…
246 int pthread_rwlock_wrlock(pthread_rwlock_t *);
247 int pthread_rwlock_trywrlock(pthread_rwlock_t *);
248 int pthread_rwlock_timedwrlock(pthread_rwlock_t *__restrict, const struct timespec *__restrict);
[all …]
/third_party/musl/porting/linux/user/include/
Dpthread.h222 int pthread_rwlock_init(pthread_rwlock_t *__restrict, const pthread_rwlockattr_t *__restrict);
223 int pthread_rwlock_destroy(pthread_rwlock_t *);
224 int pthread_rwlock_rdlock(pthread_rwlock_t *);
225 int pthread_rwlock_tryrdlock(pthread_rwlock_t *);
226 int pthread_rwlock_timedrdlock(pthread_rwlock_t *__restrict, const struct timespec *__restrict);
242 int pthread_rwlock_clockrdlock(pthread_rwlock_t *__restrict, clockid_t, const struct timespec *__re…
257 int pthread_rwlock_timedrdlock_monotonic_np(pthread_rwlock_t *__restrict, const struct timespec *__…
258 int pthread_rwlock_wrlock(pthread_rwlock_t *);
259 int pthread_rwlock_trywrlock(pthread_rwlock_t *);
260 int pthread_rwlock_timedwrlock(pthread_rwlock_t *__restrict, const struct timespec *__restrict);
[all …]
/third_party/musl/libc-test/src/api/
Dpthread.c15 T(pthread_rwlock_t) in f()
54 {pthread_rwlock_t x = PTHREAD_RWLOCK_INITIALIZER;} in f()
122 {int(*p)(pthread_rwlock_t*) = pthread_rwlock_destroy;} in f()
123 {int(*p)(pthread_rwlock_t*restrict,const pthread_rwlockattr_t*restrict) = pthread_rwlock_init;} in f()
124 {int(*p)(pthread_rwlock_t*) = pthread_rwlock_rdlock;} in f()
125 {int(*p)(pthread_rwlock_t*) = pthread_rwlock_tryrdlock;} in f()
126 {int(*p)(pthread_rwlock_t*) = pthread_rwlock_trywrlock;} in f()
127 {int(*p)(pthread_rwlock_t*) = pthread_rwlock_unlock;} in f()
128 {int(*p)(pthread_rwlock_t*) = pthread_rwlock_wrlock;} in f()
170 {int(*p)(pthread_rwlock_t*restrict,const struct timespec*restrict) = pthread_rwlock_timedrdlock;} in g()
[all …]
/third_party/musl/porting/liteos_m/user/include/
Dpthread.h121 int pthread_rwlock_init(pthread_rwlock_t *__restrict, const pthread_rwlockattr_t *__restrict);
122 int pthread_rwlock_destroy(pthread_rwlock_t *);
123 int pthread_rwlock_rdlock(pthread_rwlock_t *);
124 int pthread_rwlock_tryrdlock(pthread_rwlock_t *);
125 int pthread_rwlock_timedrdlock(pthread_rwlock_t *__restrict, const struct timespec *__restrict);
126 int pthread_rwlock_wrlock(pthread_rwlock_t *);
127 int pthread_rwlock_trywrlock(pthread_rwlock_t *);
128 int pthread_rwlock_timedwrlock(pthread_rwlock_t *__restrict, const struct timespec *__restrict);
129 int pthread_rwlock_unlock(pthread_rwlock_t *);
/third_party/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 *);
/third_party/musl/libc-test/src/functionalext/thread/
Dpthread_rwlock_wrlock.c19 static pthread_rwlock_t w_rwlock1;
20 static pthread_rwlock_t w_rwlock2;
21 static pthread_rwlock_t w_rwlock3;
22 static pthread_rwlock_t w_rwlock4;
23 static pthread_rwlock_t w_rwlock5;
24 static pthread_rwlock_t w_rwlock6;
158 pthread_rwlock_t w; in pthread_rwlock_timedwrlock_0010()
175 pthread_rwlock_t w; in pthread_rwlock_timedwrlock_0020()
194 pthread_rwlock_t w; in pthread_rwlock_timedwrlock_0030()
213 pthread_rwlock_t w; in pthread_rwlock_timedwrlock_0040()
[all …]
Dpthread_rwlock_rdlock.c21 pthread_rwlock_t g_rwlock1;
61 pthread_rwlock_t g_rwlock2;
106 pthread_rwlock_t g_rwlock3;
146 pthread_rwlock_t g_rwlock4;
190 pthread_rwlock_t g_rwlock5;
230 pthread_rwlock_t g_rwlock6;
280 EXPECT_EQ(pthread_rwlock_timedrdlock_monotonic_np((pthread_rwlock_t *)NULL, &ts), EINVAL); in pthread_rwlock_timedrdlock_monotonic_np_0030()
/third_party/musl/porting/uniproton/kernel/include/
Dpthread.h128 int pthread_rwlock_init(pthread_rwlock_t *__restrict, const pthread_rwlockattr_t *__restrict);
129 int pthread_rwlock_destroy(pthread_rwlock_t *);
130 int pthread_rwlock_rdlock(pthread_rwlock_t *);
131 int pthread_rwlock_tryrdlock(pthread_rwlock_t *);
132 int pthread_rwlock_timedrdlock(pthread_rwlock_t *__restrict, const struct timespec *__restrict);
133 int pthread_rwlock_wrlock(pthread_rwlock_t *);
134 int pthread_rwlock_trywrlock(pthread_rwlock_t *);
135 int pthread_rwlock_timedwrlock(pthread_rwlock_t *__restrict, const struct timespec *__restrict);
136 int pthread_rwlock_unlock(pthread_rwlock_t *);
/third_party/musl/porting/liteos_m/kernel/include/
Dpthread.h128 int pthread_rwlock_init(pthread_rwlock_t *__restrict, const pthread_rwlockattr_t *__restrict);
129 int pthread_rwlock_destroy(pthread_rwlock_t *);
130 int pthread_rwlock_rdlock(pthread_rwlock_t *);
131 int pthread_rwlock_tryrdlock(pthread_rwlock_t *);
132 int pthread_rwlock_timedrdlock(pthread_rwlock_t *__restrict, const struct timespec *__restrict);
133 int pthread_rwlock_wrlock(pthread_rwlock_t *);
134 int pthread_rwlock_trywrlock(pthread_rwlock_t *);
135 int pthread_rwlock_timedwrlock(pthread_rwlock_t *__restrict, const struct timespec *__restrict);
136 int pthread_rwlock_unlock(pthread_rwlock_t *);
/third_party/musl/porting/liteos_m_iccarm/kernel/include/
Dpthread.h128 int pthread_rwlock_init(pthread_rwlock_t *__restrict, const pthread_rwlockattr_t *__restrict);
129 int pthread_rwlock_destroy(pthread_rwlock_t *);
130 int pthread_rwlock_rdlock(pthread_rwlock_t *);
131 int pthread_rwlock_tryrdlock(pthread_rwlock_t *);
132 int pthread_rwlock_timedrdlock(pthread_rwlock_t *__restrict, const struct timespec *__restrict);
133 int pthread_rwlock_wrlock(pthread_rwlock_t *);
134 int pthread_rwlock_trywrlock(pthread_rwlock_t *);
135 int pthread_rwlock_timedwrlock(pthread_rwlock_t *__restrict, const struct timespec *__restrict);
136 int pthread_rwlock_unlock(pthread_rwlock_t *);
/third_party/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 {
/third_party/musl/libc-test/src/functionalext/supplement/thread/
Dpthread_rwlock_timedrdlock.c20 extern int __pthread_rwlock_timedrdlock_time64(pthread_rwlock_t *__restrict, const struct timespec …
30 pthread_rwlock_t rwlock; in pthread_rwlock_timedrdlock_0100()
54 pthread_rwlock_t rwlock; in pthread_rwlock_timedrdlock_0200()
78 pthread_rwlock_t rwlock; in pthread_rwlock_timedrdlock_0300()
102 pthread_rwlock_t rwlock; in pthread_rwlock_timedrdlock_time64_0100()
Dpthread_rwlock_timedwrlock.c20 extern int __pthread_rwlock_timedwrlock_time64(pthread_rwlock_t *__restrict, const struct timespec …
30 pthread_rwlock_t rwlock; in pthread_rwlock_timedwrlock_0100()
54 pthread_rwlock_t rwlock; in pthread_rwlock_timedwrlock_0200()
78 pthread_rwlock_t rwlock; in pthread_rwlock_timedwrlock_0300()
102 pthread_rwlock_t rwlock; in pthread_rwlock_timedwrlock_time64_0100()
Dpthread_rwlock_tryrdlock.c26 pthread_rwlock_t rwlock; in pthread_rwlock_tryrdlock_0100()
47 pthread_rwlock_t rwlock; in pthread_rwlock_tryrdlock_0200()
Dpthread_rwlock_trywrlock.c26 pthread_rwlock_t rwlock; in pthread_rwlock_trywrlock_0100()
47 pthread_rwlock_t rwlock; in pthread_rwlock_trywrlock_0200()
/third_party/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 {
/third_party/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()
/third_party/musl/porting/linux/user/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 __builtin_memset(rw, 0, sizeof(pthread_rwlock_t)); in pthread_rwlock_init()
/third_party/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 {
/third_party/musl/Benchmark/musl/
Dlibc_pthread.cpp232 pthread_rwlock_t rwlock; in Bm_function_pthread_rwlock_tryrdlock()
284 pthread_rwlock_t rwlock; in Bm_function_pthread_rwlock_init()
294 pthread_rwlock_t rwlock; in Bm_function_pthread_rwlock_init_destroy()
305 pthread_rwlock_t lock; in BM_pthread_rwlock_tryread()
319 pthread_rwlock_t lock; in BM_pthread_rwlock_trywrite()
350 pthread_rwlock_t lock; in Bm_function_pthread_rwlock_timedrdlock()
368 pthread_rwlock_t lock; in Bm_function_pthread_rwlock_timedwrlock()

123456