Searched refs:SmartScopedWriter (Results 1 – 3 of 3) sorted by relevance
178 using SmartScopedWriter = std::lock_guard<SmartRWMutex<mt_only>>; variable180 template <bool mt_only> struct SmartScopedWriter { struct183 explicit SmartScopedWriter(SmartRWMutex<mt_only> &m) : mutex(m) { in SmartScopedWriter() argument187 ~SmartScopedWriter() { mutex.unlock(); } in ~SmartScopedWriter() argument190 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()