From a68c7b2d4599e52a9af51fd8191c318e9a30543b Mon Sep 17 00:00:00 2001 From: "Jake.Stine" Date: Tue, 27 Apr 2010 23:27:14 +0000 Subject: [PATCH] Fix for random crashes when using F4 (framelimit toggler). git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2921 96395faa-99c1-11dd-bbfe-3dabce05a288 --- pcsx2/gui/AppCoreThread.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pcsx2/gui/AppCoreThread.cpp b/pcsx2/gui/AppCoreThread.cpp index 5a68f85e1..8bb5284ef 100644 --- a/pcsx2/gui/AppCoreThread.cpp +++ b/pcsx2/gui/AppCoreThread.cpp @@ -296,12 +296,12 @@ protected: void _post_and_wait( IScopedCoreThread& core ) { + ScopedLock lock( m_mtx_resume ); + PostResult(); if( m_resume ) { - ScopedLock lock( m_mtx_resume ); - // If the sender of the message requests a non-blocking resume, then we need // to deallocate the m_sync object, since the sender will likely leave scope and // invalidate it.