Home
last modified time | relevance | path

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

/freebsd/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()
285 ValueGuard stream_guard = StreamIsValid(); in GetStream()
287 if (ValueGuard descriptor_guard = DescriptorIsValid()) { in GetStream()
393 if (ValueGuard descriptor_guard = DescriptorIsValid()) { in SeekFromStart()
405 if (ValueGuard stream_guard = StreamIsValid()) { in SeekFromStart()
424 if (ValueGuard descriptor_guard = DescriptorIsValid()) { in SeekFromCurrent()
436 if (ValueGuard stream_guard = StreamIsValid()) { in SeekFromCurrent()
455 if (ValueGuard descriptor_guard = DescriptorIsValid()) { in SeekFromEnd()
467 if (ValueGuard stream_guard = StreamIsValid()) { in SeekFromEnd()
[all …]
/freebsd/contrib/llvm-project/lldb/include/lldb/Host/
H A DFile.h423 struct ValueGuard { struct
424 ValueGuard(std::mutex &m, bool b) : guard(m, std::adopt_lock), value(b) {} in ValueGuard() argument
437 ValueGuard DescriptorIsValid() const { in DescriptorIsValid() argument
439 return ValueGuard(m_descriptor_mutex, DescriptorIsValidUnlocked()); in DescriptorIsValid()
442 ValueGuard StreamIsValid() const { in StreamIsValid()
444 return ValueGuard(m_stream_mutex, StreamIsValidUnlocked()); in StreamIsValid()