[Lldb-commits] [lldb] [lldb] Use Policy for ProcessRunLock re-entrancy (PR #195774)
Jonas Devlieghere via lldb-commits
lldb-commits at lists.llvm.org
Fri May 8 11:02:23 PDT 2026
================
@@ -32,9 +37,42 @@ bool ProcessRunLock::ReadTryLock() {
}
bool ProcessRunLock::ReadUnlock() {
+ Policy policy = PolicyStack::Get().Current();
+ if (policy.capabilities.holds_run_lock)
+ return true;
+
return ::pthread_rwlock_unlock(&m_rwlock) == 0;
}
+bool ProcessRunLock::ProcessRunLocker::TryLock(ProcessRunLock *lock) {
----------------
JDevlieghere wrote:
Will this compile on Windows? This whole file is guarded by `#ifndef _WIN32` so now that this is out-of-line, I assume we need to implement this outside the ifdef?
https://github.com/llvm/llvm-project/pull/195774
More information about the lldb-commits
mailing list