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

  /external/compiler-rt/test/tsan/
write_in_reader_lock.cc 4 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/valgrind/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/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/
ICUServiceTest.java 881 ICURWLock rwlock = new ICURWLock(); local
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.releaseRead()
    [all...]
  /external/valgrind/drd/
drd_clientobj.h 153 struct rwlock_info rwlock; member in union:drd_clientobj
drd_error.h 154 Addr rwlock; member in struct:__anon20563
  /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:__anon70069
262 TZERO(pthread_rwlock_tryrdlock(s->rwlock));
    [all...]
  /bionic/libc/bionic/
pthread_rwlock.cpp 62 // 1 rwlock_kind have rwlock preference like PTHREAD_RWLOCK_PREFER_READER_NP.
63 // 0 process_shared set to 1 if the rwlock is shared between processes.
137 // A rwlock state is implemented as a 32-bit integer which has following rules:
165 // When a reader thread plans to suspend on the rwlock, it will add STATE_HAVE_PENDING_READERS_FLAG
227 pthread_rwlock_internal_t* rwlock = __get_internal_rwlock(rwlock_interface); local
229 memset(rwlock, 0, sizeof(pthread_rwlock_internal_t));
232 rwlock->pshared = __rwlockattr_getpshared(attr);
236 rwlock->writer_nonrecursive_preferred = false;
239 rwlock->writer_nonrecursive_preferred = true;
249 atomic_init(&rwlock->state, 0)
255 pthread_rwlock_internal_t* rwlock = __get_internal_rwlock(rwlock_interface); local
425 pthread_rwlock_internal_t* rwlock = __get_internal_rwlock(rwlock_interface); local
434 pthread_rwlock_internal_t* rwlock = __get_internal_rwlock(rwlock_interface); local
444 pthread_rwlock_internal_t* rwlock = __get_internal_rwlock(rwlock_interface); local
453 pthread_rwlock_internal_t* rwlock = __get_internal_rwlock(rwlock_interface); local
463 pthread_rwlock_internal_t* rwlock = __get_internal_rwlock(rwlock_interface); local
    [all...]
  /external/fio/
file.h 108 struct fio_rwlock *rwlock; member in union:fio_file::__anon9228
  /external/bison/lib/glthread/
lock.h 207 pthread_rwlock_t rwlock; /* read-write lock */ member in struct:__anon4674
    [all...]
  /bionic/tests/
pthread_test.cpp 1527 pthread_rwlock_t* rwlock = reinterpret_cast<pthread_rwlock_t*>( local
    [all...]

Completed in 545 milliseconds