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

  /system/core/include/utils/
RWLock.h 42 class RWLock {
49 RWLock();
50 RWLock(const char* name);
51 RWLock(int type, const char* name = NULL);
52 ~RWLock();
62 inline AutoRLock(RWLock& rwlock) : mLock(rwlock) { mLock.readLock(); }
65 RWLock& mLock;
70 inline AutoWLock(RWLock& rwlock) : mLock(rwlock) { mLock.writeLock();
    [all...]
  /external/valgrind/drd/tests/
tsan_thread_wrappers_pthread.h 295 // pthreads do not allow to use condvar with rwlock so we can't make
299 class RWLock {
301 RWLock() { CHECK(0 == pthread_rwlock_init(&mu_, NULL)); }
302 ~RWLock() { CHECK(0 == pthread_rwlock_destroy(&mu_)); }
312 class ReaderLockScoped { // Scoped RWLock Locker/Unlocker
314 ReaderLockScoped(RWLock *mu)
322 RWLock *mu_;
325 class WriterLockScoped { // Scoped RWLock Locker/Unlocker
327 WriterLockScoped(RWLock *mu)
335 RWLock *mu_
    [all...]
tsan_unittest.cpp 54 #define RWLock Mutex // Mutex does work as an rw-lock.
    [all...]

Completed in 72 milliseconds