[Lldb-commits] [lldb] [lldb] Add try_lock to SBMutex (PR #164109)
Jonas Devlieghere via lldb-commits
lldb-commits at lists.llvm.org
Mon Oct 20 07:29:10 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)
----------------
JDevlieghere wrote:
Yes, it's a wrapper around a `std::shared_ptr<std::recursive_mutex>`. It could be null when you use the constructor that takes an `SBTarget` that is null.
https://github.com/llvm/llvm-project/pull/164109
More information about the lldb-commits
mailing list