Searched defs:rwlock (Results 1 - 8 of 8) sorted by relevance

/external/valgrind/main/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...]
/external/valgrind/main/drd/
H A Ddrd_clientobj.h152 struct rwlock_info rwlock; member in union:drd_clientobj
H A Ddrd_rwlock.c198 * Compare the type of the rwlock specified at initialization time with
206 /* The code below has to be updated if additional rwlock types are added. */
220 ? "Attempt to use a user-defined rwlock as a POSIX rwlock"
221 : "Attempt to use a POSIX rwlock as a user-defined rwlock",
229 void DRD_(rwlock_initialize)(struct rwlock_info* const p, const Addr rwlock, argument
232 tl_assert(rwlock != 0);
233 tl_assert(p->a1 == rwlock);
241 0, 0, VG_(malloc), "drd.rwlock
283 rwlock_get_or_allocate(const Addr rwlock, const RwLockT rwlock_type) argument
314 rwlock_get(const Addr rwlock) argument
321 rwlock_pre_init(const Addr rwlock, const RwLockT rwlock_type) argument
357 rwlock_post_destroy(const Addr rwlock, const RwLockT rwlock_type) argument
387 rwlock_pre_rdlock(const Addr rwlock, const RwLockT rwlock_type) argument
416 rwlock_post_rdlock(const Addr rwlock, const RwLockT rwlock_type, const Bool took_lock) argument
456 rwlock_pre_wrlock(const Addr rwlock, const RwLockT rwlock_type) argument
491 rwlock_post_wrlock(const Addr rwlock, const RwLockT rwlock_type, const Bool took_lock) argument
533 rwlock_pre_unlock(const Addr rwlock, const RwLockT rwlock_type) argument
[all...]
H A Ddrd_error.h155 Addr rwlock; member in struct:__anon11151
H A Ddrd_pthread_intercepts.c1069 int pthread_rwlock_init_intercept(pthread_rwlock_t* rwlock, argument
1077 rwlock, 0, 0, 0, 0);
1078 CALL_FN_W_WW(ret, fn, rwlock, attr);
1084 (pthread_rwlock_t* rwlock, const pthread_rwlockattr_t* attr),
1085 (rwlock, attr));
1088 int pthread_rwlock_destroy_intercept(pthread_rwlock_t* rwlock) argument
1094 CALL_FN_W_W(ret, fn, rwlock);
1096 rwlock, 0, 0, 0, 0);
1102 (pthread_rwlock_t* rwlock), (rwlock));
1105 pthread_rwlock_rdlock_intercept(pthread_rwlock_t* rwlock) argument
1124 pthread_rwlock_wrlock_intercept(pthread_rwlock_t* rwlock) argument
1143 pthread_rwlock_timedrdlock_intercept(pthread_rwlock_t* rwlock) argument
1162 pthread_rwlock_timedwrlock_intercept(pthread_rwlock_t* rwlock) argument
1181 pthread_rwlock_tryrdlock_intercept(pthread_rwlock_t* rwlock) argument
1200 pthread_rwlock_trywrlock_intercept(pthread_rwlock_t* rwlock) argument
1219 pthread_rwlock_unlock_intercept(pthread_rwlock_t* rwlock) argument
[all...]
/external/valgrind/main/helgrind/
H A Dhg_intercepts.c1384 static int pthread_rwlock_wrlock_WRK(pthread_rwlock_t* rwlock) argument
1390 fprintf(stderr, "<< pthread_rwl_wlk %p", rwlock); fflush(stderr);
1394 pthread_rwlock_t*,rwlock,
1397 CALL_FN_W_W(ret, fn, rwlock);
1401 pthread_rwlock_t*,rwlock, long,1/*isW*/);
1413 pthread_rwlock_t* rwlock) {
1414 return pthread_rwlock_wrlock_WRK(rwlock);
1418 pthread_rwlock_t* rwlock) {
1419 return pthread_rwlock_wrlock_WRK(rwlock);
1431 static int pthread_rwlock_rdlock_WRK(pthread_rwlock_t* rwlock) argument
1412 PTH_FUNC(int, pthreadZurwlockZuwrlock, pthread_rwlock_t* rwlock) argument
1417 PTH_FUNC(int, pthreadZurwlockZuwrlockZa, pthread_rwlock_t* rwlock) argument
1459 PTH_FUNC(int, pthreadZurwlockZurdlock, pthread_rwlock_t* rwlock) argument
1464 PTH_FUNC(int, pthreadZurwlockZurdlockZa, pthread_rwlock_t* rwlock) argument
1478 pthread_rwlock_trywrlock_WRK(pthread_rwlock_t* rwlock) argument
1512 PTH_FUNC(int, pthreadZurwlockZutrywrlock, pthread_rwlock_t* rwlock) argument
1517 PTH_FUNC(int, pthreadZurwlockZutrywrlockZa, pthread_rwlock_t* rwlock) argument
1531 pthread_rwlock_tryrdlock_WRK(pthread_rwlock_t* rwlock) argument
1565 PTH_FUNC(int, pthreadZurwlockZutryrdlock, pthread_rwlock_t* rwlock) argument
1570 PTH_FUNC(int, pthreadZurwlockZutryrdlockZa, pthread_rwlock_t* rwlock) argument
1583 pthread_rwlock_unlock_WRK(pthread_rwlock_t* rwlock) argument
1610 PTH_FUNC(int, pthreadZurwlockZuunlock, pthread_rwlock_t* rwlock) argument
1615 PTH_FUNC(int, pthreadZurwlockZuunlockZa, pthread_rwlock_t* rwlock) argument
[all...]
/external/valgrind/tsan/
H A Dts_valgrind_intercepts.c1509 static int pthread_rwlock_wrlock_WRK(pthread_rwlock_t* rwlock) argument
1515 fprintf(stderr, "<< pthread_rwl_wlk %p", rwlock); fflush(stderr);
1520 CALL_FN_W_W(ret, fn, rwlock);
1525 pthread_rwlock_t*,rwlock, long,1/*isW*/);
1537 pthread_rwlock_t* rwlock)
1539 return pthread_rwlock_wrlock_WRK(rwlock);
1543 pthread_rwlock_t* rwlock)
1545 return pthread_rwlock_wrlock_WRK(rwlock);
1549 static int pthread_rwlock_rdlock_WRK(pthread_rwlock_t* rwlock) argument
1555 fprintf(stderr, "<< pthread_rwl_rlk %p", rwlock); fflus
1536 PTH_FUNC(int, pthreadZurwlockZuwrlock, pthread_rwlock_t* rwlock) argument
1542 PTH_FUNC(int, pthreadZurwlockZuwrlock$Za, pthread_rwlock_t* rwlock) argument
1575 PTH_FUNC(int, pthreadZurwlockZurdlock, pthread_rwlock_t* rwlock) argument
1581 PTH_FUNC(int, pthreadZurwlockZurdlock$Za, pthread_rwlock_t* rwlock) argument
1588 pthread_rwlock_trywrlock_WRK(pthread_rwlock_t* rwlock) argument
1620 PTH_FUNC(int, pthreadZurwlockZutrywrlock, pthread_rwlock_t* rwlock) argument
1626 PTH_FUNC(int, pthreadZurwlockZutrywrlock$Za, pthread_rwlock_t* rwlock) argument
1633 pthread_rwlock_tryrdlock_WRK(pthread_rwlock_t* rwlock) argument
1665 PTH_FUNC(int, pthreadZurwlockZutryrdlock, pthread_rwlock_t* rwlock) argument
1671 PTH_FUNC(int, pthreadZurwlockZutryrdlock$Za, pthread_rwlock_t* rwlock) argument
1679 pthread_rwlock_unlock_WRK(pthread_rwlock_t* rwlock) argument
1705 PTH_FUNC(int, pthreadZurwlockZuunlock, pthread_rwlock_t* rwlock) argument
1711 PTH_FUNC(int, pthreadZurwlockZuunlock$Za, pthread_rwlock_t* rwlock) argument
[all...]

Completed in 122 milliseconds