[Lldb-commits] [lldb] [lldb] Add try_lock to SBMutex (PR #164109)
Michael Buch via lldb-commits
lldb-commits at lists.llvm.org
Mon Oct 20 07:33:46 PDT 2025
================
@@ -58,3 +58,12 @@ void SBMutex::unlock() const {
if (m_opaque_sp)
m_opaque_sp->unlock();
}
+
+bool SBMutex::try_lock() const {
+ LLDB_INSTRUMENT_VA(this);
+
+ if (m_opaque_sp)
----------------
Michael137 wrote:
Correct me if I'm wrong, but I don't think the aliasing constructor allows `SBTarget` to ever be null. After all, we're aliasing one of its members, so we always dereference it.
https://github.com/llvm/llvm-project/pull/164109
More information about the lldb-commits
mailing list