Remove a lock acquisition from ProcessWindows::OnExitProcess.
authorZachary Turner <zturner@google.com>
Tue, 6 Jan 2015 20:56:12 +0000 (20:56 +0000)
committerZachary Turner <zturner@google.com>
Tue, 6 Jan 2015 20:56:12 +0000 (20:56 +0000)
commitc8761f4807266f06463e5aaf3953d7bc0e11d759
treeee27aaa46d980bea90c4dc317da141a389db3f93
parent0f39721261d344194a4530dfbaa2848193e8fe1e
Remove a lock acquisition from ProcessWindows::OnExitProcess.

This was causing a race condition where DoDestroy() would acquire
the lock and then initiate a shutdown and then wait for it to
complete.  But part of the shutdown involved acquiring the same
lock from a different thread.  So the main thread would timeout
waiting for the shutdown to complete and return too soon.

The end result of this is that SBProcess::Kill() was broken on
Windows.

llvm-svn: 225297
lldb/source/Plugins/Process/Windows/ProcessWindows.cpp