Searched refs:RWLock (Results 1 – 2 of 2) sorted by relevance
299 class RWLock {301 RWLock() { CHECK(0 == pthread_rwlock_init(&mu_, NULL)); } in RWLock() function302 ~RWLock() { CHECK(0 == pthread_rwlock_destroy(&mu_)); } in ~RWLock()314 ReaderLockScoped(RWLock *mu) in ReaderLockScoped()322 RWLock *mu_;327 WriterLockScoped(RWLock *mu) in WriterLockScoped()335 RWLock *mu_;
54 #define RWLock Mutex // Mutex does work as an rw-lock. macro5760 RWLock mu;5979 RWLock mu;