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 80540657d0
commit c765b2ad90

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
{ {
// DO INITIALIZATION THAT MUST BE REPEATED FOR A RESTART // DO INITIALIZATION THAT MUST BE REPEATED FOR A RESTART