Searched refs:SmartScopedWriter (Results 1 – 6 of 6) sorted by relevance
184 using SmartScopedWriter = std::lock_guard<SmartRWMutex<mt_only>>; variable186 template <bool mt_only> struct SmartScopedWriter { struct189 explicit SmartScopedWriter(SmartRWMutex<mt_only> &m) : mutex(m) { in SmartScopedWriter() argument193 ~SmartScopedWriter() { mutex.unlock(); } in ~SmartScopedWriter() argument196 typedef SmartScopedWriter<false> ScopedWriter;
50 sys::SmartScopedWriter<true> Guard(Lock); in registerPass()90 sys::SmartScopedWriter<true> Guard(Lock); in registerAnalysisGroup()111 sys::SmartScopedWriter<true> Guard(Lock); in addRegistrationListener()116 sys::SmartScopedWriter<true> Guard(Lock); in removeRegistrationListener()
112 llvm::sys::SmartScopedWriter<false> wlock(m_string_pools[h].m_mutex); in GetConstCStringWithStringRef()129 llvm::sys::SmartScopedWriter<false> wlock(m_string_pools[h].m_mutex); in GetConstCStringAndSetMangledCounterPart()145 llvm::sys::SmartScopedWriter<false> wlock(m_string_pools[h].m_mutex); in GetConstCStringAndSetMangledCounterPart()
65 llvm::sys::SmartScopedWriter<true> guard(mutex); in lookupOrInsert()
163 llvm::sys::SmartScopedWriter<true> typeLock(shard.mutex); in getOrCreate()175 llvm::sys::SmartScopedWriter<true> lock(shard.mutex); in mutate()
99 llvm::sys::SmartScopedWriter<true> contextLock(impl.identifierMutex); in get()