/external/compiler-rt/test/tsan/ |
H A D | write_in_reader_lock.cc | 5 pthread_rwlock_t rwlock; variable 10 pthread_rwlock_rdlock(&rwlock); 14 pthread_rwlock_unlock(&rwlock); 19 pthread_rwlock_init(&rwlock, NULL); 20 pthread_rwlock_rdlock(&rwlock); 25 pthread_rwlock_unlock(&rwlock); 27 pthread_rwlock_destroy(&rwlock);
|
/external/llvm/lib/Support/ |
H A D | RWMutex.cpp | 50 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/chromium_org/native_client_sdk/src/libraries/third_party/pthreads-win32/ |
H A D | ptw32_rwlock_check_need_init.c | 41 ptw32_rwlock_check_need_init (pthread_rwlock_t * rwlock) argument 55 * and only initialise if the rwlock is valid (not been destroyed). 56 * If a static rwlock has been destroyed, the application can 60 if (*rwlock == PTHREAD_RWLOCK_INITIALIZER) 62 result = pthread_rwlock_init (rwlock, NULL); 64 else if (*rwlock == NULL) 67 * The rwlock has been destroyed while we were waiting to
|
H A D | pthread_rwlock_unlock.c | 43 pthread_rwlock_unlock (pthread_rwlock_t * rwlock) argument 48 if (rwlock == NULL || *rwlock == NULL) 53 if (*rwlock == PTHREAD_RWLOCK_INITIALIZER) 61 rwl = *rwlock;
|
H A D | pthread_rwlock_rdlock.c | 43 pthread_rwlock_rdlock (pthread_rwlock_t * rwlock) argument 48 if (rwlock == NULL || *rwlock == NULL) 55 * to initialise a static rwlock. We check 59 if (*rwlock == PTHREAD_RWLOCK_INITIALIZER) 61 result = ptw32_rwlock_check_need_init (rwlock); 69 rwl = *rwlock;
|
H A D | pthread_rwlock_timedrdlock.c | 43 pthread_rwlock_timedrdlock (pthread_rwlock_t * rwlock, argument 49 if (rwlock == NULL || *rwlock == NULL) 56 * to initialise a static rwlock. We check 60 if (*rwlock == PTHREAD_RWLOCK_INITIALIZER) 62 result = ptw32_rwlock_check_need_init (rwlock); 70 rwl = *rwlock;
|
H A D | pthread_rwlock_tryrdlock.c | 43 pthread_rwlock_tryrdlock (pthread_rwlock_t * rwlock) argument 48 if (rwlock == NULL || *rwlock == NULL) 55 * to initialise a static rwlock. We check 59 if (*rwlock == PTHREAD_RWLOCK_INITIALIZER) 61 result = ptw32_rwlock_check_need_init (rwlock); 69 rwl = *rwlock;
|
H A D | pthread_rwlock_trywrlock.c | 43 pthread_rwlock_trywrlock (pthread_rwlock_t * rwlock) argument 48 if (rwlock == NULL || *rwlock == NULL) 55 * to initialise a static rwlock. We check 59 if (*rwlock == PTHREAD_RWLOCK_INITIALIZER) 61 result = ptw32_rwlock_check_need_init (rwlock); 69 rwl = *rwlock;
|
H A D | pthread_rwlock_destroy.c | 43 pthread_rwlock_destroy (pthread_rwlock_t * rwlock) argument 48 if (rwlock == NULL || *rwlock == NULL) 53 if (*rwlock != PTHREAD_RWLOCK_INITIALIZER) 55 rwl = *rwlock; 102 *rwlock = NULL; /* Invalidate rwlock before anything else */ 120 if (*rwlock == PTHREAD_RWLOCK_INITIALIZER) 124 * initialised rwlock that has not yet been used (initialised). 126 * waiting to initialise this rwlock wil [all...] |
H A D | pthread_rwlock_timedwrlock.c | 43 pthread_rwlock_timedwrlock (pthread_rwlock_t * rwlock, argument 49 if (rwlock == NULL || *rwlock == NULL) 56 * to initialise a static rwlock. We check 60 if (*rwlock == PTHREAD_RWLOCK_INITIALIZER) 62 result = ptw32_rwlock_check_need_init (rwlock); 70 rwl = *rwlock;
|
H A D | pthread_rwlock_wrlock.c | 43 pthread_rwlock_wrlock (pthread_rwlock_t * rwlock) argument 48 if (rwlock == NULL || *rwlock == NULL) 55 * to initialise a static rwlock. We check 59 if (*rwlock == PTHREAD_RWLOCK_INITIALIZER) 61 result = ptw32_rwlock_check_need_init (rwlock); 69 rwl = *rwlock;
|
H A D | pthread_rwlock_init.c | 43 pthread_rwlock_init (pthread_rwlock_t * rwlock, argument 49 if (rwlock == NULL) 106 *rwlock = rwl;
|
/external/valgrind/main/drd/tests/ |
H A D | trylock.c | 23 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 D | hold_lock.c | 30 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 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:
|
H A 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:
|
H A 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:
|
H A D | tc12_rwl_trivial.stderr.exp | 2 Reader-writer lock not locked by calling thread: rwlock 0x......... 5 rwlock 0x........ was first observed at:
|
H A 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 ...
|
/external/valgrind/main/drd/ |
H A D | drd_rwlock.h | 43 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 D | drd_rwlock.c | 191 * 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 D | drd.h | 219 #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 D | drd_pthread_intercepts.c | 1095 int pthread_rwlock_init_intercept(pthread_rwlock_t* rwlock, argument 1102 rwlock, 0, 0, 0, 0); 1103 CALL_FN_W_WW(ret, fn, rwlock, attr); 1105 rwlock, 0, 0, 0, 0); 1111 (pthread_rwlock_t* rwlock, const pthread_rwlockattr_t* attr), 1112 (rwlock, attr)); 1115 int pthread_rwlock_destroy_intercept(pthread_rwlock_t* rwlock) argument 1121 rwlock, 0, 0, 0, 0); 1122 CALL_FN_W_W(ret, fn, rwlock); 1124 rwlock, 1133 pthread_rwlock_rdlock_intercept(pthread_rwlock_t* rwlock) argument 1151 pthread_rwlock_wrlock_intercept(pthread_rwlock_t* rwlock) argument 1169 pthread_rwlock_timedrdlock_intercept(pthread_rwlock_t* rwlock, const struct timespec *timeout) argument 1189 pthread_rwlock_timedwrlock_intercept(pthread_rwlock_t* rwlock, const struct timespec *timeout) argument 1209 pthread_rwlock_tryrdlock_intercept(pthread_rwlock_t* rwlock) argument 1227 pthread_rwlock_trywrlock_intercept(pthread_rwlock_t* rwlock) argument 1245 pthread_rwlock_unlock_intercept(pthread_rwlock_t* rwlock) argument [all...] |
H A D | drd_error.h | 154 Addr rwlock; member in struct:__anon32770
|
/external/valgrind/main/helgrind/ |
H A D | hg_intercepts.c | 1485 static int pthread_rwlock_wrlock_WRK(pthread_rwlock_t* rwlock) argument 1491 fprintf(stderr, "<< pthread_rwl_wlk %p", rwlock); fflush(stderr); 1495 pthread_rwlock_t*,rwlock, 1498 CALL_FN_W_W(ret, fn, rwlock); 1502 pthread_rwlock_t*,rwlock, long,1/*isW*/); 1514 pthread_rwlock_t* rwlock) { 1515 return pthread_rwlock_wrlock_WRK(rwlock); 1519 pthread_rwlock_t* rwlock) { 1520 return pthread_rwlock_wrlock_WRK(rwlock); 1533 static int pthread_rwlock_rdlock_WRK(pthread_rwlock_t* rwlock) argument 1513 PTH_FUNC(int, pthreadZurwlockZuwrlock, pthread_rwlock_t* rwlock) argument 1518 PTH_FUNC(int, pthreadZurwlockZuwrlockZa, pthread_rwlock_t* rwlock) argument 1561 PTH_FUNC(int, pthreadZurwlockZurdlock, pthread_rwlock_t* rwlock) argument 1566 PTH_FUNC(int, pthreadZurwlockZurdlockZa, pthread_rwlock_t* rwlock) argument 1581 pthread_rwlock_trywrlock_WRK(pthread_rwlock_t* rwlock) argument 1615 PTH_FUNC(int, pthreadZurwlockZutrywrlock, pthread_rwlock_t* rwlock) argument 1620 PTH_FUNC(int, pthreadZurwlockZutrywrlockZa, pthread_rwlock_t* rwlock) argument 1635 pthread_rwlock_tryrdlock_WRK(pthread_rwlock_t* rwlock) argument 1669 PTH_FUNC(int, pthreadZurwlockZutryrdlock, pthread_rwlock_t* rwlock) argument 1674 PTH_FUNC(int, pthreadZurwlockZutryrdlockZa, pthread_rwlock_t* rwlock) argument 1688 pthread_rwlock_unlock_WRK(pthread_rwlock_t* rwlock) argument 1715 PTH_FUNC(int, pthreadZurwlockZuunlock, pthread_rwlock_t* rwlock) argument 1720 PTH_FUNC(int, pthreadZurwlockZuunlockZa, pthread_rwlock_t* rwlock) argument [all...] |