================
@@ -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:
I know this is what we do in all the other methods too, but under what
circumstances can this be `nullptr`? Isn't it's lifetime at least that of the
owning SBMutex?
https://github.com/llvm/llvm-project/pull/164109
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits