[Lldb-commits] [lldb] r220651 - Added a missing call to 'Reset'.

Hafiz Abid Qadeer hafiz_abid at mentor.com
Sun Oct 26 14:38:43 PDT 2014


Author: abidh
Date: Sun Oct 26 16:38:43 2014
New Revision: 220651

URL: http://llvm.org/viewvc/llvm-project?rev=220651&view=rev
Log:
Added a missing call to 'Reset'.
HostThreadWindows::Join() did not call the Reset as is done by
the HostThreadPosix::Join(). As a result, future call to 
IsJoinable() can fail.

Committed as obvious.
 

Modified:
    lldb/trunk/source/Host/windows/HostThreadWindows.cpp

Modified: lldb/trunk/source/Host/windows/HostThreadWindows.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Host/windows/HostThreadWindows.cpp?rev=220651&r1=220650&r2=220651&view=diff
==============================================================================
--- lldb/trunk/source/Host/windows/HostThreadWindows.cpp (original)
+++ lldb/trunk/source/Host/windows/HostThreadWindows.cpp Sun Oct 26 16:38:43 2014
@@ -51,6 +51,8 @@ HostThreadWindows::Join(lldb::thread_res
     }
     else
         error.SetError(ERROR_INVALID_HANDLE, eErrorTypeWin32);
+
+    Reset ();
     return error;
 }
 





More information about the lldb-commits mailing list