Workaround for the MTVU deadlock on exit issue. There are actually several issues which deserve closer examination here but this fixes the symptom of zombie pcsx2 instances.

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@5142 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
sudonim1@gmail.com 2012-04-05 19:55:44 +00:00
parent 4512a3cad0
commit 5561415088
1 changed files with 3 additions and 0 deletions

View File

@ -23,6 +23,7 @@
#include "Elfheader.h"
#include "Patch.h"
#include "SysThreads.h"
#include "MTVU.h"
#include "Utilities/PageFaultSource.h"
#include "Utilities/TlsVariable.inl"
@ -278,6 +279,8 @@ void SysCoreThread::OnCleanupInThread()
m_hasActiveMachine = false;
m_resetVirtualMachine = true;
// FIXME: temporary workaround for deadlock on exit, which actually should be a crash
vu1Thread.WaitVU();
GetCorePlugins().Close();
GetCorePlugins().Shutdown();