From: <man...@us...> - 2013-04-09 00:27:47
|
Revision: 1788 http://sourceforge.net/p/modplug/code/1788 Author: manxorist Date: 2013-04-09 00:27:40 +0000 (Tue, 09 Apr 2013) Log Message: ----------- [Ref] Remove all calls to SetPriorityClass(). They did nothing anyway. Modified Paths: -------------- trunk/OpenMPT/mptrack/MainFrm.cpp trunk/OpenMPT/mptrack/Mod2wave.cpp Modified: trunk/OpenMPT/mptrack/MainFrm.cpp =================================================================== --- trunk/OpenMPT/mptrack/MainFrm.cpp 2013-04-09 00:22:38 UTC (rev 1787) +++ trunk/OpenMPT/mptrack/MainFrm.cpp 2013-04-09 00:27:40 UTC (rev 1788) @@ -263,10 +263,6 @@ OnUpdateUser(NULL); m_nTimer = SetTimer(1, MPTTIMER_PERIOD, NULL); -//rewbs: reduce to normal priority during debug for easier hang debugging - //SetPriorityClass(GetCurrentProcess(), HIGH_PRIORITY_CLASS); - SetPriorityClass(GetCurrentProcess(), NORMAL_PRIORITY_CLASS); - // Setup Keyboard Hook ghKbdHook = SetWindowsHookEx(WH_KEYBOARD, KeyboardProc, AfxGetInstanceHandle(), GetCurrentThreadId()); // Initialize Audio Mixer @@ -379,7 +375,6 @@ { CSoundFile::gpSndMixHook = nullptr; - SetPriorityClass(GetCurrentProcess(), NORMAL_PRIORITY_CLASS); // Uninstall Keyboard Hook if (ghKbdHook) { Modified: trunk/OpenMPT/mptrack/Mod2wave.cpp =================================================================== --- trunk/OpenMPT/mptrack/Mod2wave.cpp 2013-04-09 00:22:38 UTC (rev 1787) +++ trunk/OpenMPT/mptrack/Mod2wave.cpp 2013-04-09 00:27:40 UTC (rev 1788) @@ -692,7 +692,6 @@ } } - SetPriorityClass(GetCurrentProcess(), NORMAL_PRIORITY_CLASS); int oldVol = m_pSndFile->GetMasterVolume(); CSoundFile::gdwSoundSetup |= SNDMIX_DIRECTTODISK; CSoundFile::gdwMixingFreq = m_pWaveFormat->nSamplesPerSec; @@ -973,9 +972,6 @@ } } CMainFrame::UpdateAudioParameters(TRUE); -//rewbs: reduce to normal priority during debug for easier hang debugging - //SetPriorityClass(GetCurrentProcess(), HIGH_PRIORITY_CLASS); - SetPriorityClass(GetCurrentProcess(), NORMAL_PRIORITY_CLASS); EndDialog(ok); } @@ -1040,7 +1036,6 @@ progress = ::GetDlgItem(m_hWnd, IDC_PROGRESS1); if ((!m_pSndFile) || (!m_lpszFileName) || (!m_pwfx) || (!m_hadid)) goto OnError; - SetPriorityClass(GetCurrentProcess(), NORMAL_PRIORITY_CLASS); _splitpath(m_lpszFileName, NULL, NULL, NULL, fext); if (((m_bSaveInfoField) && (m_pwfx->wFormatTag != WAVE_FORMAT_MPEGLAYER3)) || (!lstrcmpi(fext, ".wav"))) bSaveWave = true; @@ -1249,8 +1244,5 @@ if (hADriver != NULL) theApp.GetACMConvert().AcmDriverClose(hADriver, 0L); if (pcmBuffer) delete[] pcmBuffer; if (dstBuffer) delete[] dstBuffer; -//rewbs: reduce to normal priority during debug for easier hang debugging - //SetPriorityClass(GetCurrentProcess(), HIGH_PRIORITY_CLASS); - SetPriorityClass(GetCurrentProcess(), NORMAL_PRIORITY_CLASS); EndDialog(retval); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |