Bumped APPLEWIN process to ABOVE_NORMAL & main thread to ABOVE_NORMAL

This commit is contained in:
tomch 2009-05-09 14:37:08 +00:00
parent 24f389072a
commit 2e16558920

View File

@ -872,7 +872,16 @@ int APIENTRY WinMain (HINSTANCE passinstance, HINSTANCE, LPSTR lpCmdLine, int)
}
//
// Make APPLEWIN process higher priority
if ( SetPriorityClass(GetCurrentProcess(), ABOVE_NORMAL_PRIORITY_CLASS) )
{
// Make main thread (for audio) higher priority
SetThreadPriority(GetCurrentThread(), THREAD_PRIORITY_ABOVE_NORMAL);
}
//
do
{
// DO INITIALIZATION THAT MUST BE REPEATED FOR A RESTART