/external/llvm/lib/Support/ |
D | RWMutex.cpp | 50 pthread_rwlock_t* rwlock = in RWMutexImpl() local 55 bzero(rwlock, sizeof(pthread_rwlock_t)); in RWMutexImpl() 59 int errorcode = pthread_rwlock_init(rwlock, NULL); in RWMutexImpl() 64 data_ = rwlock; in RWMutexImpl() 70 pthread_rwlock_t* rwlock = static_cast<pthread_rwlock_t*>(data_); in ~RWMutexImpl() local 71 assert(rwlock != 0); in ~RWMutexImpl() 72 pthread_rwlock_destroy(rwlock); in ~RWMutexImpl() 73 free(rwlock); in ~RWMutexImpl() 79 pthread_rwlock_t* rwlock = static_cast<pthread_rwlock_t*>(data_); in reader_acquire() local 80 assert(rwlock != 0); in reader_acquire() [all …]
|
/external/valgrind/main/drd/tests/ |
D | trylock.c | 23 pthread_rwlock_t rwlock; in main() local 30 r = pthread_rwlock_init(&rwlock, NULL); assert(r == 0); in main() 32 r = pthread_rwlock_wrlock(&rwlock); assert(r == 0); in main() 33 r = pthread_rwlock_unlock(&rwlock); assert(r == 0); in main() 35 r = pthread_rwlock_trywrlock(&rwlock); assert(r == 0); in main() 36 r = pthread_rwlock_unlock(&rwlock); assert(r == 0); in main() 39 r = pthread_rwlock_timedwrlock(&rwlock, &abs_timeout); assert(r == 0); in main() 40 r = pthread_rwlock_unlock(&rwlock); assert(r == 0); in main() 43 r = pthread_rwlock_rdlock(&rwlock); assert(r == 0); in main() 44 r = pthread_rwlock_rdlock(&rwlock); assert(r == 0); in main() [all …]
|
D | hold_lock.c | 30 pthread_rwlock_t rwlock; in main() local 60 pthread_rwlock_init(&rwlock, 0); in main() 61 pthread_rwlock_wrlock(&rwlock); in main() 63 pthread_rwlock_unlock(&rwlock); in main() 64 pthread_rwlock_destroy(&rwlock); in main() 68 pthread_rwlock_init(&rwlock, 0); in main() 69 pthread_rwlock_rdlock(&rwlock); in main() 71 pthread_rwlock_rdlock(&rwlock); in main() 72 pthread_rwlock_unlock(&rwlock); in main() 73 pthread_rwlock_unlock(&rwlock); in main() [all …]
|
D | trylock.stderr.exp | 2 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:
|
D | rwlock_type_checking.stderr.exp | 2 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:
|
D | hold_lock_2.stderr.exp | 3 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:
|
D | hold_lock_1.stderr.exp | 13 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 ...
|
D | tc12_rwl_trivial.stderr.exp | 2 Reader-writer lock not locked by calling thread: rwlock 0x......... 5 rwlock 0x........ was first observed at:
|
D | tc23_bogus_condwait.stderr.exp-linux-ppc | 26 rwlock 0x........ was first observed at: 38 rwlock 0x........ was first observed at:
|
D | tc23_bogus_condwait.stderr.exp-linux-x86 | 39 rwlock 0x........ was first observed at: 51 rwlock 0x........ was first observed at:
|
/external/valgrind/main/drd/ |
D | drd_rwlock.c | 229 void DRD_(rwlock_initialize)(struct rwlock_info* const p, const Addr rwlock, in DRD_() 232 tl_assert(rwlock != 0); in DRD_() 233 tl_assert(p->a1 == rwlock); in DRD_() 279 DRD_(rwlock_get_or_allocate)(const Addr rwlock, const RwLockT rwlock_type) in DRD_() 283 tl_assert(offsetof(DrdClientobj, rwlock) == 0); in DRD_() 284 p = &(DRD_(clientobj_get)(rwlock, ClientRwlock)->rwlock); in DRD_() 291 if (DRD_(clientobj_present)(rwlock, rwlock + 1)) in DRD_() 295 .addr = rwlock, in DRD_() 305 p = &(DRD_(clientobj_add)(rwlock, ClientRwlock)->rwlock); in DRD_() 306 DRD_(rwlock_initialize)(p, rwlock, rwlock_type); in DRD_() [all …]
|
D | drd.h | 180 #define ANNOTATE_RWLOCK_CREATE(rwlock) \ argument 182 rwlock, 0, 0, 0, 0); 185 #define ANNOTATE_RWLOCK_DESTROY(rwlock) \ argument 187 rwlock, 0, 0, 0, 0); 194 #define ANNOTATE_RWLOCK_ACQUIRED(rwlock, is_w) \ argument 196 rwlock, is_w, 0, 0, 0) 202 #define ANNOTATE_READERLOCK_ACQUIRED(rwlock) ANNOTATE_RWLOCK_ACQUIRED(rwlock, 0) argument 208 #define ANNOTATE_WRITERLOCK_ACQUIRED(rwlock) ANNOTATE_RWLOCK_ACQUIRED(rwlock, 1) argument 215 #define ANNOTATE_RWLOCK_RELEASED(rwlock, is_w) \ argument 217 rwlock, is_w, 0, 0, 0); [all …]
|
D | drd_pthread_intercepts.c | 1074 int pthread_rwlock_init_intercept(pthread_rwlock_t* rwlock, in pthread_rwlock_init_intercept() argument 1081 rwlock, 0, 0, 0, 0); in pthread_rwlock_init_intercept() 1082 CALL_FN_W_WW(ret, fn, rwlock, attr); in pthread_rwlock_init_intercept() 1088 (pthread_rwlock_t* rwlock, const pthread_rwlockattr_t* attr), 1089 (rwlock, attr)); 1092 int pthread_rwlock_destroy_intercept(pthread_rwlock_t* rwlock) in pthread_rwlock_destroy_intercept() argument 1097 CALL_FN_W_W(ret, fn, rwlock); in pthread_rwlock_destroy_intercept() 1099 rwlock, 0, 0, 0, 0); in pthread_rwlock_destroy_intercept() 1105 (pthread_rwlock_t* rwlock), (rwlock)); 1108 int pthread_rwlock_rdlock_intercept(pthread_rwlock_t* rwlock) in pthread_rwlock_rdlock_intercept() argument [all …]
|
D | drd_rwlock.h | 44 struct rwlock_info* DRD_(rwlock_pre_init)(const Addr rwlock, 46 void DRD_(rwlock_post_destroy)(const Addr rwlock, const RwLockT rwlock_type); 47 void DRD_(rwlock_pre_rdlock)(const Addr rwlock, const RwLockT rwlock_type); 48 void DRD_(rwlock_post_rdlock)(const Addr rwlock, const RwLockT rwlock_type, 50 void DRD_(rwlock_pre_wrlock)(const Addr rwlock, const RwLockT rwlock_type); 51 void DRD_(rwlock_post_wrlock)(const Addr rwlock, const RwLockT rwlock_type, 53 void DRD_(rwlock_pre_unlock)(const Addr rwlock, const RwLockT rwlock_type);
|
D | drd_error.h | 155 Addr rwlock; member
|
D | drd_clientobj.h | 153 struct rwlock_info rwlock; member
|
D | drd_error.c | 402 VG_(get_error_string)(e), p->rwlock, what_suffix); in drd_tool_error_pp() 404 first_observed(p->rwlock); in drd_tool_error_pp()
|
/external/kernel-headers/original/linux/ |
D | spinlock.h | 154 # define _raw_read_lock(rwlock) __raw_read_lock(&(rwlock)->raw_lock) argument 155 # define _raw_read_trylock(rwlock) __raw_read_trylock(&(rwlock)->raw_lock) argument 156 # define _raw_read_unlock(rwlock) __raw_read_unlock(&(rwlock)->raw_lock) argument 157 # define _raw_write_lock(rwlock) __raw_write_lock(&(rwlock)->raw_lock) argument 158 # define _raw_write_trylock(rwlock) __raw_write_trylock(&(rwlock)->raw_lock) argument 159 # define _raw_write_unlock(rwlock) __raw_write_unlock(&(rwlock)->raw_lock) argument 162 #define read_can_lock(rwlock) __raw_read_can_lock(&(rwlock)->raw_lock) argument 163 #define write_can_lock(rwlock) __raw_write_can_lock(&(rwlock)->raw_lock) argument
|
/external/valgrind/main/helgrind/ |
D | hg_intercepts.c | 1405 static int pthread_rwlock_wrlock_WRK(pthread_rwlock_t* rwlock) in pthread_rwlock_wrlock_WRK() argument 1411 fprintf(stderr, "<< pthread_rwl_wlk %p", rwlock); fflush(stderr); in pthread_rwlock_wrlock_WRK() 1415 pthread_rwlock_t*,rwlock, in pthread_rwlock_wrlock_WRK() 1418 CALL_FN_W_W(ret, fn, rwlock); in pthread_rwlock_wrlock_WRK() 1422 pthread_rwlock_t*,rwlock, long,1/*isW*/); in pthread_rwlock_wrlock_WRK() 1434 pthread_rwlock_t* rwlock) { in PTH_FUNC() argument 1435 return pthread_rwlock_wrlock_WRK(rwlock); in PTH_FUNC() 1439 pthread_rwlock_t* rwlock) { in PTH_FUNC() argument 1440 return pthread_rwlock_wrlock_WRK(rwlock); in PTH_FUNC() 1453 static int pthread_rwlock_rdlock_WRK(pthread_rwlock_t* rwlock) in pthread_rwlock_rdlock_WRK() argument [all …]
|
/external/valgrind/tsan/ |
D | ts_valgrind_intercepts.c | 1509 static int pthread_rwlock_wrlock_WRK(pthread_rwlock_t* rwlock) in pthread_rwlock_wrlock_WRK() argument 1515 fprintf(stderr, "<< pthread_rwl_wlk %p", rwlock); fflush(stderr); in pthread_rwlock_wrlock_WRK() 1520 CALL_FN_W_W(ret, fn, rwlock); in pthread_rwlock_wrlock_WRK() 1525 pthread_rwlock_t*,rwlock, long,1/*isW*/); in pthread_rwlock_wrlock_WRK() 1537 pthread_rwlock_t* rwlock) in PTH_FUNC() argument 1539 return pthread_rwlock_wrlock_WRK(rwlock); in PTH_FUNC() 1543 pthread_rwlock_t* rwlock) in PTH_FUNC() argument 1545 return pthread_rwlock_wrlock_WRK(rwlock); in PTH_FUNC() 1549 static int pthread_rwlock_rdlock_WRK(pthread_rwlock_t* rwlock) in pthread_rwlock_rdlock_WRK() argument 1555 fprintf(stderr, "<< pthread_rwl_rlk %p", rwlock); fflush(stderr); in pthread_rwlock_rdlock_WRK() [all …]
|
/external/valgrind/main/ |
D | darwin9.supp | 292 helgrind-darwin9--pthread-rwlock-kludgery
|