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