================
@@ -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
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits