[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 08:17:32 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:

Yea definitely out-of-scope of this PR. Adding an assert and removing the null-checks would be a nice-to-have

https://github.com/llvm/llvm-project/pull/164109


More information about the lldb-commits mailing list