Home
last modified time | relevance | path

Searched refs:ValueGuard (Results 1 – 2 of 2) sorted by relevance

/freebsd-src/contrib/llvm-project/lldb/source/Host/common/
H A DFile.cpp258 if (ValueGuard descriptor_guard = DescriptorIsValid()) { in GetDescriptor()
264 if (ValueGuard stream_guard = StreamIsValid()) { in GetDescriptor()
281 ValueGuard stream_guard = StreamIsValid(); in GetStream()
283 if (ValueGuard descriptor_guard = DescriptorIsValid()) { in GetStream()
389 if (ValueGuard descriptor_guard = DescriptorIsValid()) { in SeekFromStart()
401 if (ValueGuard stream_guard = StreamIsValid()) { in SeekFromStart()
420 if (ValueGuard descriptor_guard = DescriptorIsValid()) { in SeekFromCurrent()
432 if (ValueGuard stream_guard = StreamIsValid()) { in SeekFromCurrent()
451 if (ValueGuard descriptor_guard = DescriptorIsValid()) { in SeekFromEnd()
463 if (ValueGuard stream_guard = StreamIsValid()) { in SeekFromEnd()
[all …]
/freebsd-src/contrib/llvm-project/lldb/include/lldb/Host/
H A DFile.h418 struct ValueGuard { struct
419 ValueGuard(std::mutex &m, bool b) : guard(m, std::adopt_lock), value(b) {} in ValueGuard() argument
432 ValueGuard DescriptorIsValid() const { in DescriptorIsValid() argument
434 return ValueGuard(m_descriptor_mutex, DescriptorIsValidUnlocked()); in DescriptorIsValid()
437 ValueGuard StreamIsValid() const { in StreamIsValid()
439 return ValueGuard(m_stream_mutex, StreamIsValidUnlocked()); in StreamIsValid()