Home
last modified time | relevance | path

Searched refs:SmartScopedReader (Results 1 – 3 of 3) sorted by relevance

/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DRWMutex.h170 using SmartScopedReader = const std::shared_lock<SmartRWMutex<mt_only>>; variable
172 template <bool mt_only> struct SmartScopedReader { struct
175 explicit SmartScopedReader(SmartRWMutex<mt_only> &m) : mutex(m) { in SmartScopedReader() argument
179 ~SmartScopedReader() { mutex.unlock_shared(); } in ~SmartScopedReader() argument
182 typedef SmartScopedReader<false> ScopedReader;
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DPassRegistry.cpp36 sys::SmartScopedReader<true> Guard(Lock); in getPassInfo()
41 sys::SmartScopedReader<true> Guard(Lock); in getPassInfo()
66 sys::SmartScopedReader<true> Guard(Lock); in enumerateWith()
/freebsd/contrib/llvm-project/lldb/source/Utility/
H A DConstString.cpp83 llvm::sys::SmartScopedReader<false> rlock(pool.m_mutex); in GetMangledCounterpart()
107 llvm::sys::SmartScopedReader<false> rlock(pool.m_mutex); in GetConstCStringWithStringRef()
168 llvm::sys::SmartScopedReader<false> rlock(pool.m_mutex); in GetMemoryStats()