HomeSort by relevance Sort by last modified time
    Searched defs:rwlock (Results 1 - 7 of 7) sorted by null

  /external/compiler-rt/lib/tsan/lit_tests/
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/valgrind/main/drd/tests/
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, &abs_timeout); assert(r == 0)
    [all...]
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...]
  /external/valgrind/main/drd/
drd_clientobj.h 152 struct rwlock_info rwlock; member in union:drd_clientobj
drd_error.h 154 Addr rwlock; member in struct:__anon29881
  /system/extras/tests/bionic/libc/common/
test_pthread_rwlock.c 109 /* perform a simple init/lock/unlock/destroy test on a rwlock of given attributes */
141 /* simple init/lock/unlock/destroy on all rwlock types */
231 * - main thread creates a rwlock and rdlocks it
235 * then unlock the rwlock.
237 * - thread 1 tryrdlocks() the rwlock. It shall acquire the lock
240 * - thread 2 trywrlocks() the rwlock. In case of failure (EBUSY), it waits
242 * it succeeds. It then unlocks the rwlock.
247 * to which thread is going to acquire the rwlock first.
250 pthread_rwlock_t rwlock[1]; member in struct:__anon62845
262 TZERO(pthread_rwlock_tryrdlock(s->rwlock));
    [all...]
  /external/bison/lib/glthread/
lock.h 207 pthread_rwlock_t rwlock; /* read-write lock */ member in struct:__anon2725
    [all...]

Completed in 235 milliseconds