Patch that allows for thread_t to be something more complex than an
integer. Modified patch from Kirk Beitz.
llvm-svn: 125067
diff --git a/lldb/tools/driver/IOChannel.cpp b/lldb/tools/driver/IOChannel.cpp
index bf7891a..9bf2b8e 100644
--- a/lldb/tools/driver/IOChannel.cpp
+++ b/lldb/tools/driver/IOChannel.cpp
@@ -412,19 +412,19 @@
bool
IOChannel::Start ()
{
- if (m_read_thread != LLDB_INVALID_HOST_THREAD)
+ if (IS_VALID_LLDB_HOST_THREAD(m_read_thread))
return true;
m_read_thread = SBHostOS::ThreadCreate ("<lldb.driver.commandline_io>", IOChannel::IOReadThread, this,
NULL);
- return (m_read_thread != LLDB_INVALID_HOST_THREAD);
+ return (IS_VALID_LLDB_HOST_THREAD(m_read_thread));
}
bool
IOChannel::Stop ()
{
- if (m_read_thread == LLDB_INVALID_HOST_THREAD)
+ if (!IS_VALID_LLDB_HOST_THREAD(m_read_thread))
return true;
BroadcastEventByType (eBroadcastBitThreadShouldExit);