mirror of
https://github.com/AppleWin/AppleWin.git
synced 2025-02-04 10:30:34 +00:00
Bumped APPLEWIN process to ABOVE_NORMAL & main thread to ABOVE_NORMAL
This commit is contained in:
parent
24f389072a
commit
2e16558920
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user