Added a missing call to 'Reset'.
authorHafiz Abid Qadeer <hafiz_abid@mentor.com>
Sun, 26 Oct 2014 21:38:43 +0000 (21:38 +0000)
committerHafiz Abid Qadeer <hafiz_abid@mentor.com>
Sun, 26 Oct 2014 21:38:43 +0000 (21:38 +0000)
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.

llvm-svn: 220651

lldb/source/Host/windows/HostThreadWindows.cpp

index 02e3bf7..25d5c72 100644 (file)
@@ -51,6 +51,8 @@ HostThreadWindows::Join(lldb::thread_result_t *result)
     }
     else
         error.SetError(ERROR_INVALID_HANDLE, eErrorTypeWin32);
+
+    Reset ();
     return error;
 }