diff options
author | wolfbeast <mcwerewolf@gmail.com> | 2018-02-19 16:41:18 +0100 |
---|---|---|
committer | wolfbeast <mcwerewolf@gmail.com> | 2018-02-19 16:41:18 +0100 |
commit | 13a9ea6486df49cee94a5e5a23b02dca13968eb7 (patch) | |
tree | ae1d5c689551acfac05d594b70627d15cb060a65 /xpcom/glue/nsThreadUtils.cpp | |
parent | 4f82d71df070e813927893fc20aa7954fbae997d (diff) | |
download | UXP-13a9ea6486df49cee94a5e5a23b02dca13968eb7.tar UXP-13a9ea6486df49cee94a5e5a23b02dca13968eb7.tar.gz UXP-13a9ea6486df49cee94a5e5a23b02dca13968eb7.tar.lz UXP-13a9ea6486df49cee94a5e5a23b02dca13968eb7.tar.xz UXP-13a9ea6486df49cee94a5e5a23b02dca13968eb7.zip |
Remove XPCOM checks for Windows Vista and clean up unused header files.
Tag #22
Diffstat (limited to 'xpcom/glue/nsThreadUtils.cpp')
-rw-r--r-- | xpcom/glue/nsThreadUtils.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/xpcom/glue/nsThreadUtils.cpp b/xpcom/glue/nsThreadUtils.cpp index 287ada7be..2f2383fd8 100644 --- a/xpcom/glue/nsThreadUtils.cpp +++ b/xpcom/glue/nsThreadUtils.cpp @@ -20,15 +20,10 @@ #ifdef XP_WIN #include <windows.h> -#include "mozilla/WindowsVersion.h" -using mozilla::IsVistaOrLater; #elif defined(XP_MACOSX) #include <sys/resource.h> #endif -#include <pratom.h> -#include <prthread.h> - using namespace mozilla; #ifndef XPCOM_GLUE_AVOID_NSPR @@ -443,8 +438,7 @@ nsThreadPoolNaming::SetThreadPoolName(const nsACString& aPoolName, nsAutoLowPriorityIO::nsAutoLowPriorityIO() { #if defined(XP_WIN) - lowIOPrioritySet = IsVistaOrLater() && - SetThreadPriority(GetCurrentThread(), + lowIOPrioritySet = SetThreadPriority(GetCurrentThread(), THREAD_MODE_BACKGROUND_BEGIN); #elif defined(XP_MACOSX) oldPriority = getiopolicy_np(IOPOL_TYPE_DISK, IOPOL_SCOPE_THREAD); |