summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core/Communication.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2011-02-08 01:34:25 +0000
committerGreg Clayton <gclayton@apple.com>2011-02-08 01:34:25 +0000
commit2da6d495236931a07a79b605821210d096fe6f30 (patch)
tree065dd79b258f5f72b7cde3fb214de18181f5934f /lldb/source/Core/Communication.cpp
parentde7f699754327136f0e5a592b65079560225934c (diff)
downloadbcm5719-llvm-2da6d495236931a07a79b605821210d096fe6f30.tar.gz
bcm5719-llvm-2da6d495236931a07a79b605821210d096fe6f30.zip
Patch that allows for thread_t to be something more complex than an
integer. Modified patch from Kirk Beitz. llvm-svn: 125067
Diffstat (limited to 'lldb/source/Core/Communication.cpp')
-rw-r--r--lldb/source/Core/Communication.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lldb/source/Core/Communication.cpp b/lldb/source/Core/Communication.cpp
index 6b8a6fe530b..089daac4b64 100644
--- a/lldb/source/Core/Communication.cpp
+++ b/lldb/source/Core/Communication.cpp
@@ -228,7 +228,7 @@ Communication::Write (const void *src, size_t src_len, ConnectionStatus &status,
bool
Communication::StartReadThread (Error *error_ptr)
{
- if (m_read_thread != LLDB_INVALID_HOST_THREAD)
+ if (IS_VALID_LLDB_HOST_THREAD(m_read_thread))
return true;
lldb_private::LogIfAnyCategoriesSet (LIBLLDB_LOG_COMMUNICATION,
@@ -240,7 +240,7 @@ Communication::StartReadThread (Error *error_ptr)
m_read_thread_enabled = true;
m_read_thread = Host::ThreadCreate (thread_name, Communication::ReadThread, this, error_ptr);
- if (m_read_thread == LLDB_INVALID_HOST_THREAD)
+ if (!IS_VALID_LLDB_HOST_THREAD(m_read_thread))
m_read_thread_enabled = false;
return m_read_thread_enabled;
}
@@ -248,7 +248,7 @@ Communication::StartReadThread (Error *error_ptr)
bool
Communication::StopReadThread (Error *error_ptr)
{
- if (m_read_thread == LLDB_INVALID_HOST_THREAD)
+ if (!IS_VALID_LLDB_HOST_THREAD(m_read_thread))
return true;
lldb_private::LogIfAnyCategoriesSet (LIBLLDB_LOG_COMMUNICATION,
OpenPOWER on IntegriCloud