Searched refs:OwningLock (Results 1 – 1 of 1) sorted by relevance
24 std::unique_lock<std::shared_mutex> OwningLock; member in __anond09638f40111::ReaderWriterLock28 : OwningLock(Mutex, std::defer_lock) {} in ReaderWriterLock()30 Expected<bool> tryLock() override { return OwningLock.try_lock(); } in tryLock()34 assert(!OwningLock); in waitForUnlockFor()39 std::shared_lock<std::shared_mutex> Lock(*OwningLock.mutex()); in waitForUnlockFor()