Searched refs:SmartScopedWriter (Results 1 – 3 of 3) sorted by relevance
187 using SmartScopedWriter = std::lock_guard<SmartRWMutex<mt_only>>; variable189 template <bool mt_only> struct SmartScopedWriter { struct192 explicit SmartScopedWriter(SmartRWMutex<mt_only> &m) : mutex(m) { in SmartScopedWriter() argument196 ~SmartScopedWriter() { mutex.unlock(); } in ~SmartScopedWriter() argument199 typedef SmartScopedWriter<false> ScopedWriter;
50 sys::SmartScopedWriter<true> Guard(Lock); in registerPass()72 sys::SmartScopedWriter<true> Guard(Lock); in addRegistrationListener()77 sys::SmartScopedWriter<true> Guard(Lock); in removeRegistrationListener()
113 llvm::sys::SmartScopedWriter<false> wlock(pool.m_mutex); in GetConstCStringWithStringRef()131 llvm::sys::SmartScopedWriter<false> wlock(pool.m_mutex); in GetConstCStringAndSetMangledCounterPart()148 llvm::sys::SmartScopedWriter<false> wlock(pool.m_mutex); in GetConstCStringAndSetMangledCounterPart()