================
@@ -736,11 +734,12 @@ void ThreadList::NotifySelectedThreadChanged(lldb::tid_t
tid) {
void ThreadList::Update(ThreadList &rhs) {
if (this != &rhs) {
- // Lock both mutexes to make sure neither side changes anyone on us while
- // the assignment occurs
- std::scoped_lock<std::recursive_mutex, std::recursive_mutex>
guard(GetMutex(), rhs.GetMutex());
+ // Same process implies same mutex...
+ assert(&m_process == &rhs.m_process);
+ assert(&GetMutex() == &GetMutex());
----------------
labath wrote:
yes 🤦
https://github.com/llvm/llvm-project/pull/98293
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits