disable thread pri boosting for the main thread

This commit is contained in:
Glenn Maynard
2004-06-07 02:37:50 +00:00
parent 4ab9934008
commit 1063496711
@@ -21,6 +21,10 @@ ArchHooks_Win32::ArchHooks_Win32()
/* Disable critical errors, and handle them internally. We never want the /* Disable critical errors, and handle them internally. We never want the
* "drive not ready", etc. dialogs to pop up. */ * "drive not ready", etc. dialogs to pop up. */
SetErrorMode( SetErrorMode(0) | SEM_FAILCRITICALERRORS ); SetErrorMode( SetErrorMode(0) | SEM_FAILCRITICALERRORS );
/* Windows boost priority on keyboard input, among other things. Disable that for
* the main thread. */
SetThreadPriorityBoost( GetCurrentThread(), TRUE );
} }
ArchHooks_Win32::~ArchHooks_Win32() ArchHooks_Win32::~ArchHooks_Win32()