Searched refs:SmartScopedReader (Results 1 – 7 of 7) sorted by relevance
167 using SmartScopedReader = const std::shared_lock<SmartRWMutex<mt_only>>; variable169 template <bool mt_only> struct SmartScopedReader { struct172 explicit SmartScopedReader(SmartRWMutex<mt_only> &m) : mutex(m) { in SmartScopedReader() argument176 ~SmartScopedReader() { mutex.unlock_shared(); } in ~SmartScopedReader() argument179 typedef SmartScopedReader<false> ScopedReader;
36 sys::SmartScopedReader<true> Guard(Lock); in getPassInfo()41 sys::SmartScopedReader<true> Guard(Lock); in getPassInfo()66 sys::SmartScopedReader<true> Guard(Lock); in enumerateWith()
83 llvm::sys::SmartScopedReader<false> rlock(m_string_pools[h].m_mutex); in GetMangledCounterpart()106 llvm::sys::SmartScopedReader<false> rlock(m_string_pools[h].m_mutex); in GetConstCStringWithStringRef()165 llvm::sys::SmartScopedReader<false> rlock(pool.m_mutex); in GetMemoryStats()
60 llvm::sys::SmartScopedReader<true> guard(mutex); in lookupOrInsert()
155 llvm::sys::SmartScopedReader<true> typeLock(shard.mutex); in getOrCreate()204 llvm::sys::SmartScopedReader<true> lock(shard->mutex); in getShardFor()
90 llvm::sys::SmartScopedReader<true> contextLock(impl.identifierMutex); in get()
668 llvm::sys::SmartScopedReader<true> contextLock(ctxImpl.operationInfoMutex); in OperationName()