Searched refs:rwlock (Results 1 - 25 of 27) sorted by relevance

12

/external/compiler-rt/test/tsan/
H A Dwrite_in_reader_lock.cc4 pthread_rwlock_t rwlock; variable
9 pthread_rwlock_rdlock(&rwlock);
13 pthread_rwlock_unlock(&rwlock);
19 pthread_rwlock_init(&rwlock, NULL);
20 pthread_rwlock_rdlock(&rwlock);
25 pthread_rwlock_unlock(&rwlock);
28 pthread_rwlock_destroy(&rwlock);
/external/llvm/lib/Support/
H A DRWMutex.cpp50 pthread_rwlock_t* rwlock =
55 bzero(rwlock, sizeof(pthread_rwlock_t));
58 // Initialize the rwlock
59 int errorcode = pthread_rwlock_init(rwlock, nullptr);
64 data_ = rwlock;
70 pthread_rwlock_t* rwlock = static_cast<pthread_rwlock_t*>(data_);
71 assert(rwlock != nullptr);
72 pthread_rwlock_destroy(rwlock);
73 free(rwlock);
79 pthread_rwlock_t* rwlock
[all...]
/external/valgrind/drd/tests/
H A Dtrylock.c23 pthread_rwlock_t rwlock; local
30 r = pthread_rwlock_init(&rwlock, NULL); assert(r == 0);
31 fprintf(stderr, "Locking rwlock via pthread_rwlock_wrlock().\n");
32 r = pthread_rwlock_wrlock(&rwlock); assert(r == 0);
33 r = pthread_rwlock_unlock(&rwlock); assert(r == 0);
34 fprintf(stderr, "Locking rwlock via pthread_rwlock_trywrlock().\n");
35 r = pthread_rwlock_trywrlock(&rwlock); assert(r == 0);
36 r = pthread_rwlock_unlock(&rwlock); assert(r == 0);
37 fprintf(stderr, "Locking rwlock via pthread_rwlock_timedwrlock().\n");
39 r = pthread_rwlock_timedwrlock(&rwlock,
[all...]
H A Dhold_lock.c30 pthread_rwlock_t rwlock; local
58 fprintf(stderr, "Locking rwlock exclusively ...\n");
60 pthread_rwlock_init(&rwlock, 0);
61 pthread_rwlock_wrlock(&rwlock);
63 pthread_rwlock_unlock(&rwlock);
64 pthread_rwlock_destroy(&rwlock);
66 fprintf(stderr, "Locking rwlock shared ...\n");
68 pthread_rwlock_init(&rwlock, 0);
69 pthread_rwlock_rdlock(&rwlock);
71 pthread_rwlock_rdlock(&rwlock);
[all...]
H A Dtrylock.stderr.exp2 Locking rwlock via pthread_rwlock_wrlock().
3 Locking rwlock via pthread_rwlock_trywrlock().
4 Locking rwlock via pthread_rwlock_timedwrlock().
5 Locking rwlock via pthread_rwlock_rdlock().
6 Locking rwlock via pthread_rwlock_tryrdlock().
7 Locking rwlock via pthread_rwlock_timedrdlock().
9 Recursive writer locking not allowed: rwlock 0x.........
12 rwlock 0x........ was first observed at:
H A Drwlock_type_checking.stderr.exp2 Attempt to use a user-defined rwlock as a POSIX rwlock: rwlock 0x.........
5 rwlock 0x........ was first observed at:
8 Attempt to use a POSIX rwlock as a user-defined rwlock: rwlock 0x.........
10 rwlock 0x........ was first observed at:
H A Dhold_lock_2.stderr.exp3 Locking rwlock exclusively ...
4 Locking rwlock shared ...
8 Lock on rwlock 0x........ was held during ... ms (threshold: 500 ms).
11 rwlock 0x........ was first observed at:
H A Dtc12_rwl_trivial.stderr.exp2 Reader-writer lock not locked by calling thread: rwlock 0x.........
6 rwlock 0x........ was first observed at:
H A Dhold_lock_1.stderr.exp13 Locking rwlock exclusively ...
17 Lock on rwlock 0x........ was held during ... ms (threshold: 500 ms).
20 rwlock 0x........ was first observed at:
24 Locking rwlock shared ...
/external/valgrind/drd/
H A Ddrd_rwlock.h43 struct rwlock_info* DRD_(rwlock_pre_init)(const Addr rwlock,
45 void DRD_(rwlock_post_destroy)(const Addr rwlock, const RwLockT rwlock_type);
46 void DRD_(rwlock_pre_rdlock)(const Addr rwlock, const RwLockT rwlock_type);
47 void DRD_(rwlock_post_rdlock)(const Addr rwlock, const RwLockT rwlock_type,
49 void DRD_(rwlock_pre_wrlock)(const Addr rwlock, const RwLockT rwlock_type);
50 void DRD_(rwlock_post_wrlock)(const Addr rwlock, const RwLockT rwlock_type,
52 void DRD_(rwlock_pre_unlock)(const Addr rwlock, const RwLockT rwlock_type);
H A Ddrd_rwlock.c191 * Compare the type of the rwlock specified at initialization time with
199 /* The code below has to be updated if additional rwlock types are added. */
213 ? "Attempt to use a user-defined rwlock as a POSIX rwlock"
214 : "Attempt to use a POSIX rwlock as a user-defined rwlock",
222 void DRD_(rwlock_initialize)(struct rwlock_info* const p, const Addr rwlock, argument
225 tl_assert(rwlock != 0);
226 tl_assert(p->a1 == rwlock);
234 0, 0, VG_(malloc), "drd.rwlock
272 rwlock_get_or_allocate(const Addr rwlock, const RwLockT rwlock_type) argument
303 rwlock_get(const Addr rwlock) argument
310 rwlock_pre_init(const Addr rwlock, const RwLockT rwlock_type) argument
342 rwlock_post_destroy(const Addr rwlock, const RwLockT rwlock_type) argument
372 rwlock_pre_rdlock(const Addr rwlock, const RwLockT rwlock_type) argument
398 rwlock_post_rdlock(const Addr rwlock, const RwLockT rwlock_type, const Bool took_lock) argument
433 rwlock_pre_wrlock(const Addr rwlock, const RwLockT rwlock_type) argument
464 rwlock_post_wrlock(const Addr rwlock, const RwLockT rwlock_type, const Bool took_lock) argument
501 rwlock_pre_unlock(const Addr rwlock, const RwLockT rwlock_type) argument
[all...]
H A Ddrd_pthread_intercepts.c1502 int pthread_rwlock_init_intercept(pthread_rwlock_t* rwlock, argument
1509 rwlock, 0, 0, 0, 0);
1510 CALL_FN_W_WW(ret, fn, rwlock, attr);
1512 rwlock, 0, 0, 0, 0);
1518 (pthread_rwlock_t* rwlock, const pthread_rwlockattr_t* attr),
1519 (rwlock, attr));
1523 int rwlock_init_intercept(rwlock_t *rwlock, int type, void *arg) argument
1529 rwlock, 0, 0, 0, 0);
1530 CALL_FN_W_WWW(ret, fn, rwlock, type, arg);
1532 rwlock,
1542 pthread_rwlock_destroy_intercept(pthread_rwlock_t* rwlock) argument
1567 pthread_rwlock_rdlock_intercept(pthread_rwlock_t* rwlock) argument
1594 lrw_rdlock_intercept(rwlock_t *rwlock) argument
1610 pthread_rwlock_wrlock_intercept(pthread_rwlock_t* rwlock) argument
1637 lrw_wrlock_intercept(rwlock_t *rwlock) argument
1653 pthread_rwlock_timedrdlock_intercept(pthread_rwlock_t* rwlock, const struct timespec *timeout) argument
1679 pthread_rwlock_timedwrlock_intercept(pthread_rwlock_t* rwlock, const struct timespec *timeout) argument
1705 pthread_rwlock_tryrdlock_intercept(pthread_rwlock_t* rwlock) argument
1730 pthread_rwlock_trywrlock_intercept(pthread_rwlock_t* rwlock) argument
1755 pthread_rwlock_unlock_intercept(pthread_rwlock_t* rwlock) argument
[all...]
H A Ddrd.h219 #define ANNOTATE_RWLOCK_CREATE(rwlock) \
221 rwlock, 0, 0, 0, 0);
224 #define ANNOTATE_RWLOCK_DESTROY(rwlock) \
226 rwlock, 0, 0, 0, 0);
233 #define ANNOTATE_RWLOCK_ACQUIRED(rwlock, is_w) \
235 rwlock, is_w, 0, 0, 0)
243 #define ANNOTATE_READERLOCK_ACQUIRED(rwlock) ANNOTATE_RWLOCK_ACQUIRED(rwlock, 0)
249 #define ANNOTATE_WRITERLOCK_ACQUIRED(rwlock) ANNOTATE_RWLOCK_ACQUIRED(rwlock,
[all...]
H A Ddrd_error.h154 Addr rwlock; member in struct:__anon20308
H A Ddrd_clientobj.h153 struct rwlock_info rwlock; member in union:drd_clientobj
/external/dng_sdk/source/
H A Ddng_pthread.h133 int dng_pthread_rwlock_destroy(dng_pthread_rwlock_t * rwlock);
134 int dng_pthread_rwlock_init(dng_pthread_rwlock_t * rwlock, const pthread_rwlockattr_t * attrs);
135 int dng_pthread_rwlock_rdlock(dng_pthread_rwlock_t * rwlock);
136 int dng_pthread_rwlock_tryrdlock(dng_pthread_rwlock_t * rwlock);
137 int dng_pthread_rwlock_trywrlock(dng_pthread_rwlock_t * rwlock);
138 int dng_pthread_rwlock_unlock(dng_pthread_rwlock_t * rwlock);
139 int dng_pthread_rwlock_wrlock(dng_pthread_rwlock_t * rwlock);
144 int dng_pthread_rwlock_destroy(dng_pthread_rwlock_t * rwlock);
145 int dng_pthread_rwlock_init(dng_pthread_rwlock_t * rwlock, const pthread_rwlockattr_t * attrs);
146 int dng_pthread_rwlock_rdlock(dng_pthread_rwlock_t * rwlock);
[all...]
H A Ddng_pthread.cpp861 int dng_pthread_rwlock_init(dng_pthread_rwlock_t *rwlock, const pthread_rwlockattr_t *attrs) argument
869 *rwlock = newRWLock;
876 int dng_pthread_rwlock_destroy(dng_pthread_rwlock_t *rwlock) argument
878 dng_pthread_rwlock_impl &real_rwlock = **rwlock;
890 delete *rwlock;
891 *rwlock = NULL;
902 int dng_pthread_rwlock_rdlock(dng_pthread_rwlock_t *rwlock) argument
904 dng_pthread_rwlock_impl &real_rwlock = **rwlock;
949 int dng_pthread_rwlock_tryrdlock(dng_pthread_rwlock_t *rwlock) argument
951 dng_pthread_rwlock_impl &real_rwlock = **rwlock;
968 dng_pthread_rwlock_trywrlock(dng_pthread_rwlock_t *rwlock) argument
989 dng_pthread_rwlock_unlock(dng_pthread_rwlock_t *rwlock) argument
1029 dng_pthread_rwlock_wrlock(dng_pthread_rwlock_t *rwlock) argument
[all...]
/external/valgrind/helgrind/
H A Dhg_intercepts.c2052 rwlock_t *rwlock,
2060 fprintf(stderr, "<< rwl_init %p", rwlock); fflush(stderr);
2063 CALL_FN_W_WWW(ret, fn, rwlock, type, arg);
2067 rwlock_t *, rwlock);
2137 static int pthread_rwlock_wrlock_WRK(pthread_rwlock_t* rwlock) argument
2143 fprintf(stderr, "<< pthread_rwl_wlk %p", rwlock); fflush(stderr);
2147 pthread_rwlock_t*,rwlock,
2150 CALL_FN_W_W(ret, fn, rwlock);
2153 pthread_rwlock_t*,rwlock, long,1/*isW*/,
2166 pthread_rwlock_t* rwlock) {
2051 PTH_FUNC(int, rwlockZuinit, rwlock_t *rwlock, int type, void *arg) argument
2165 PTH_FUNC(int, pthreadZurwlockZuwrlock, pthread_rwlock_t* rwlock) argument
2170 PTH_FUNC(int, pthreadZurwlockZuwrlockZa, pthread_rwlock_t* rwlock) argument
2175 PTH_FUNC(int, rwZuwrlock, pthread_rwlock_t *rwlock) argument
2185 PTH_FUNC(void, lrwZuwrlock, rwlock_t *rwlock) argument
2217 pthread_rwlock_rdlock_WRK(pthread_rwlock_t* rwlock) argument
2245 PTH_FUNC(int, pthreadZurwlockZurdlock, pthread_rwlock_t* rwlock) argument
2250 PTH_FUNC(int, pthreadZurwlockZurdlockZa, pthread_rwlock_t* rwlock) argument
2255 PTH_FUNC(int, rwZurdlock, pthread_rwlock_t *rwlock) argument
2265 PTH_FUNC(void, lrwZurdlock, rwlock_t *rwlock) argument
2297 pthread_rwlock_trywrlock_WRK(pthread_rwlock_t* rwlock) argument
2331 PTH_FUNC(int, pthreadZurwlockZutrywrlock, pthread_rwlock_t* rwlock) argument
2336 PTH_FUNC(int, pthreadZurwlockZutrywrlockZa, pthread_rwlock_t* rwlock) argument
2341 PTH_FUNC(int, rwZutrywrlock, pthread_rwlock_t *rwlock) argument
2357 pthread_rwlock_tryrdlock_WRK(pthread_rwlock_t* rwlock) argument
2392 PTH_FUNC(int, pthreadZurwlockZutryrdlock, pthread_rwlock_t* rwlock) argument
2397 PTH_FUNC(int, pthreadZurwlockZutryrdlockZa, pthread_rwlock_t* rwlock) argument
2402 PTH_FUNC(int, rwZutryrdlock, pthread_rwlock_t *rwlock) argument
2418 pthread_rwlock_timedrdlock_WRK(pthread_rwlock_t *rwlock, const struct timespec *timeout) argument
2449 PTH_FUNC(int, pthreadZurwlockZutimedrdlock, pthread_rwlock_t *rwlock, const struct timespec *timeout) argument
2454 PTH_FUNC(int, pthreadZurwlockZureltimedrdlockZunp, pthread_rwlock_t *rwlock, const struct timespec *timeout) argument
2471 pthread_rwlock_timedwrlock_WRK(pthread_rwlock_t *rwlock, const struct timespec *timeout) argument
2502 PTH_FUNC(int, pthreadZurwlockZutimedwrlock, pthread_rwlock_t *rwlock, const struct timespec *timeout) argument
2507 PTH_FUNC(int, pthreadZurwlockZureltimedwrlockZunp, pthread_rwlock_t *rwlock, const struct timespec *timeout) argument
2523 pthread_rwlock_unlock_WRK(pthread_rwlock_t* rwlock) argument
2549 PTH_FUNC(int, pthreadZurwlockZuunlock, pthread_rwlock_t* rwlock) argument
2554 PTH_FUNC(int, pthreadZurwlockZuunlockZa, pthread_rwlock_t* rwlock) argument
2559 PTH_FUNC(int, rwZuunlock, pthread_rwlock_t *rwlock) argument
[all...]
/external/valgrind/helgrind/tests/
H A Dsafe-pthread.h38 static int safe_pthread_rwlock_unlock( pthread_rwlock_t *rwlock ) {
58 r = pthread_rwlock_unlock( rwlock );
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/
H A DICUServiceTest.java885 ICURWLock rwlock = new ICURWLock();
886 rwlock.resetStats();
888 rwlock.acquireRead();
889 rwlock.releaseRead();
891 rwlock.acquireWrite();
892 rwlock.releaseWrite();
893 logln("stats: " + rwlock.getStats());
894 logln("stats: " + rwlock.clearStats());
895 rwlock.acquireRead();
896 rwlock
[all...]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/
H A DICUServiceTest.java881 ICURWLock rwlock = new ICURWLock();
882 rwlock.resetStats();
884 rwlock.acquireRead();
885 rwlock.releaseRead();
887 rwlock.acquireWrite();
888 rwlock.releaseWrite();
889 logln("stats: " + rwlock.getStats());
890 logln("stats: " + rwlock.clearStats());
891 rwlock.acquireRead();
892 rwlock
[all...]
/external/compiler-rt/lib/tsan/tests/rtl/
H A 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);
/external/fio/
H A Dfile.h108 struct fio_rwlock *rwlock; member in union:fio_file::__anon6036
H A Dfilesetup.c1298 f->rwlock = fio_rwlock_init();
1383 fio_rwlock_read(f->rwlock);
1385 fio_rwlock_write(f->rwlock);
1398 fio_rwlock_unlock(f->rwlock);
1504 __f->rwlock = f->rwlock;
/external/bison/lib/glthread/
H A Dlock.c42 err = pthread_rwlock_init (&lock->rwlock, NULL);
72 return pthread_rwlock_rdlock (&lock->rwlock);
98 return pthread_rwlock_wrlock (&lock->rwlock);
106 return pthread_rwlock_unlock (&lock->rwlock);
116 err = pthread_rwlock_destroy (&lock->rwlock);

Completed in 1081 milliseconds

12