diff options
| author | Eli Friedman <eli.friedman@gmail.com> | 2010-07-09 22:53:18 +0000 |
|---|---|---|
| committer | Eli Friedman <eli.friedman@gmail.com> | 2010-07-09 22:53:18 +0000 |
| commit | 8878f87fb680a53cf870d335e062266beac7d8b8 (patch) | |
| tree | 0463a8023e13f463da4189c22c8e2f44de0745f5 /lldb/source/Core/Communication.cpp | |
| parent | c43894724213e097f3f64734b0ae7451a78349ba (diff) | |
| download | bcm5719-llvm-8878f87fb680a53cf870d335e062266beac7d8b8.tar.gz bcm5719-llvm-8878f87fb680a53cf870d335e062266beac7d8b8.zip | |
Misc warning fixes.
llvm-svn: 108029
Diffstat (limited to 'lldb/source/Core/Communication.cpp')
| -rw-r--r-- | lldb/source/Core/Communication.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lldb/source/Core/Communication.cpp b/lldb/source/Core/Communication.cpp index 45e5e0bf6d1..ee355dcd467 100644 --- a/lldb/source/Core/Communication.cpp +++ b/lldb/source/Core/Communication.cpp @@ -28,7 +28,7 @@ using namespace lldb_private; Communication::Communication(const char *name) : Broadcaster (name), m_connection_ap (), - m_read_thread (NULL), + m_read_thread (LLDB_INVALID_HOST_THREAD), m_read_thread_enabled (false), m_bytes(), m_bytes_mutex (Mutex::eMutexTypeRecursive), @@ -120,7 +120,7 @@ Communication::Read (void *dst, size_t dst_len, uint32_t timeout_usec, Connectio "%p Communication::Write (dst = %p, dst_len = %zu, timeout_usec = %u) connection = %p", this, dst, dst_len, timeout_usec, m_connection_ap.get()); - if (m_read_thread != NULL) + if (m_read_thread != LLDB_INVALID_HOST_THREAD) { // We have a dedicated read thread that is getting data for us size_t cached_bytes = GetCachedBytes (dst, dst_len); @@ -219,7 +219,7 @@ Communication::StartReadThread (Error *error_ptr) bool Communication::StopReadThread (Error *error_ptr) { - if (m_read_thread == NULL) + if (m_read_thread == LLDB_INVALID_HOST_THREAD) return true; lldb_private::LogIfAnyCategoriesSet (LIBLLDB_LOG_COMMUNICATION, @@ -290,7 +290,7 @@ Communication::ReadFromConnection (void *dst, size_t dst_len, ConnectionStatus & bool Communication::ReadThreadIsRunning () { - return m_read_thread != NULL; + return m_read_thread != LLDB_INVALID_HOST_THREAD; } void * |

