Searched refs:SharedLock (Results 1 – 2 of 2) sorted by relevance
44 class SCOPED_CAPABILITY SharedLock {46 explicit SharedLock(RwLock& lock) ACQUIRE_SHARED(lock) : lock_(lock) { lock_.lock_shared(); } in SharedLock() function47 ~SharedLock() RELEASE() { lock_.unlock(); } in RELEASE()52 DISALLOW_IMPLICIT_CONSTRUCTORS(SharedLock);
138 auto shared_lock = SharedLock{lock_}; in FlushTo()251 auto lock = SharedLock{lock_}; in GetSize()