================
@@ -1573,6 +1576,8 @@ static uint64_t bits(uint64_t value, uint32_t msbit, 
uint32_t lsbit) {
 }
 
 bool MachProcess::Interrupt() {
+  PTHREAD_MUTEX_LOCKER(locker, m_exception_and_signal_mutex);
+
----------------
jimingham wrote:

Would it be better to put this mutex lock after the IsRunning(state) on line 
1582.  You aren't doing anything that requires the mutex till then, and in 
general it's better to scope this as narrowly as possible.

https://github.com/llvm/llvm-project/pull/131073
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to