Lines Matching defs:RWLock
236 // pthreads do not allow to use condvar with rwlock so we can't make
240 class RWLock {
242 RWLock() { CHECK(0 == pthread_rwlock_init(&mu_, NULL)); }
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_;