[Lldb-commits] [PATCH 2/3] Do not prematurely invalidate thread handle.

Stephen Wilson wilsons at start.ca
Fri Jan 14 12:56:33 PST 2011


Setting m_private_state_thread to an invalid value when the child thread exits
results in a race condition between calls to ThreadCancel and ThreadJoin.
---
 source/Target/Process.cpp |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/source/Target/Process.cpp b/source/Target/Process.cpp
index fdfa3a6..5834b8d 100644
--- a/source/Target/Process.cpp
+++ b/source/Target/Process.cpp
@@ -2173,7 +2173,6 @@ Process::RunPrivateStateThread ()
     if (log)
         log->Printf ("Process::%s (arg = %p, pid = %i) thread exiting...", __FUNCTION__, this, GetID());
 
-    m_private_state_thread = LLDB_INVALID_HOST_THREAD;
     return NULL;
 }
 
-- 
1.7.3.5




More information about the lldb-commits mailing list