Searched defs:RWLock (Results 1 - 4 of 4) sorted by relevance

/external/valgrind/unittest/
H A Dtest_utils.h44 #define RWLock Mutex // Mutex does work as an rw-lock. macro
H A Dthread_wrappers_pthread.h240 class RWLock { class
242 RWLock() { CHECK(0 == pthread_rwlock_init(&mu_, NULL)); } function in class:RWLock
243 ~RWLock() { CHECK(0 == pthread_rwlock_destroy(&mu_)); }
266 class ReaderLockScoped { // Scoped RWLock Locker/Unlocker
268 ReaderLockScoped(RWLock *mu) : mu_(mu) {
275 RWLock *mu_;
278 class WriterLockScoped { // Scoped RWLock Locker/Unlocker
280 WriterLockScoped(RWLock *mu) : mu_(mu) {
287 RWLock *mu_;
/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 38 milliseconds