Searched refs:RWLock (Results 1 - 2 of 2) sorted by relevance

/external/valgrind/main/drd/tests/
H A Dtsan_thread_wrappers_pthread.h299 class RWLock { class
301 RWLock() { CHECK(0 == pthread_rwlock_init(&mu_, NULL)); } function in class:RWLock
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_;
H A Dtsan_unittest.cpp54 #define RWLock Mutex // Mutex does work as an rw-lock. macro
5752 // test122 TP: Simple test with RWLock {{{1
5756 RWLock mu;
5975 RWLock mu;

Completed in 168 milliseconds