summaryrefslogtreecommitdiffstats
path: root/lldb/source/Target/Process.cpp
diff options
context:
space:
mode:
authorJim Ingham <jingham@apple.com>2019-10-01 00:47:25 +0000
committerJim Ingham <jingham@apple.com>2019-10-01 00:47:25 +0000
commit58c3235ee976e577ab183a3058e804f4ac1ae027 (patch)
treeca295584f2be50ea9534b189b879dd90b7e5d75d /lldb/source/Target/Process.cpp
parent3b69bcc363d7e5b518dc673203e6ff88cd2498cb (diff)
downloadbcm5719-llvm-58c3235ee976e577ab183a3058e804f4ac1ae027.tar.gz
bcm5719-llvm-58c3235ee976e577ab183a3058e804f4ac1ae027.zip
Allow the internal-state-thread free access to the TargetAPI mutex.
It is always doing work on behalf of another thread that presumably has the mutex, so if it is calling SB API's it should have free access to the mutex. This is the same decision as we made earlier with the process RunLock. Differential Revision: https://reviews.llvm.org/D68174 llvm-svn: 373280
Diffstat (limited to 'lldb/source/Target/Process.cpp')
-rw-r--r--lldb/source/Target/Process.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/lldb/source/Target/Process.cpp b/lldb/source/Target/Process.cpp
index 40482e715dc..d0008023147 100644
--- a/lldb/source/Target/Process.cpp
+++ b/lldb/source/Target/Process.cpp
@@ -5538,6 +5538,12 @@ ProcessRunLock &Process::GetRunLock() {
return m_public_run_lock;
}
+bool Process::CurrentThreadIsPrivateStateThread()
+{
+ return m_private_state_thread.EqualsThread(Host::GetCurrentThread());
+}
+
+
void Process::Flush() {
m_thread_list.Flush();
m_extended_thread_list.Flush();
OpenPOWER on IntegriCloud