diff options
author | Greg Clayton <gclayton@apple.com> | 2011-02-08 01:34:25 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2011-02-08 01:34:25 +0000 |
commit | 2da6d495236931a07a79b605821210d096fe6f30 (patch) | |
tree | 065dd79b258f5f72b7cde3fb214de18181f5934f /lldb/source/Target/Process.cpp | |
parent | de7f699754327136f0e5a592b65079560225934c (diff) | |
download | bcm5719-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/Target/Process.cpp')
-rw-r--r-- | lldb/source/Target/Process.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Target/Process.cpp b/lldb/source/Target/Process.cpp index 0df8077b75f..9b5718a0adf 100644 --- a/lldb/source/Target/Process.cpp +++ b/lldb/source/Target/Process.cpp @@ -2122,7 +2122,7 @@ Process::StartPrivateStateThread () char thread_name[1024]; snprintf(thread_name, sizeof(thread_name), "<lldb.process.internal-state(pid=%i)>", GetID()); m_private_state_thread = Host::ThreadCreate (thread_name, Process::PrivateStateThread, this, NULL); - return m_private_state_thread != LLDB_INVALID_HOST_THREAD; + return IS_VALID_LLDB_HOST_THREAD(m_private_state_thread); } void @@ -2159,7 +2159,7 @@ Process::ControlPrivateStateThread (uint32_t signal) // thread starts exiting since the private state thread will NULL this out // when it exits const lldb::thread_t private_state_thread = m_private_state_thread; - if (private_state_thread != LLDB_INVALID_HOST_THREAD) + if (IS_VALID_LLDB_HOST_THREAD(private_state_thread)) { TimeValue timeout_time; bool timed_out; |