aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2014-09-23 18:32:09 +0000
committerZachary Turner <zturner@google.com>2014-09-23 18:32:09 +0000
commitacee96ae5290a965e20f1cb938002d9fd4012075 (patch)
tree090ef226cafe984b57d38731f777c760cacc8fde /lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp
parent4364fef82f06ebffd6dda0802a0b22126ae52c77 (diff)
downloadllvm-acee96ae5290a965e20f1cb938002d9fd4012075.zip
llvm-acee96ae5290a965e20f1cb938002d9fd4012075.tar.gz
llvm-acee96ae5290a965e20f1cb938002d9fd4012075.tar.bz2
Fix up the HostThread interface, making the interface simpler.
Reviewed by: Greg Clayton Differential Revision: http://reviews.llvm.org/D5417 llvm-svn: 218325
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp')
-rw-r--r--lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp
index 7cef02e..eea7655 100644
--- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp
+++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp
@@ -634,7 +634,7 @@ Error
GDBRemoteCommunication::StartListenThread (const char *hostname, uint16_t port)
{
Error error;
- if (m_listen_thread.GetState() == eThreadStateRunning)
+ if (m_listen_thread.IsJoinable())
{
error.SetErrorString("listen thread already running");
}
@@ -655,11 +655,8 @@ GDBRemoteCommunication::StartListenThread (const char *hostname, uint16_t port)
bool
GDBRemoteCommunication::JoinListenThread ()
{
- if (m_listen_thread.GetState() == eThreadStateRunning)
- {
+ if (m_listen_thread.IsJoinable())
m_listen_thread.Join(nullptr);
- m_listen_thread.Reset();
- }
return true;
}