mirror of
https://github.com/AppleWin/AppleWin.git
synced 2024-11-20 11:31:24 +00:00
Bumped APPLEWIN process to ABOVE_NORMAL & main thread to ABOVE_NORMAL
This commit is contained in:
parent
80540657d0
commit
c765b2ad90
@ -873,6 +873,15 @@ 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…
Reference in New Issue
Block a user