diff options
Diffstat (limited to 'xpcom/glue/nsThreadUtils.cpp')
-rw-r--r-- | xpcom/glue/nsThreadUtils.cpp | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/xpcom/glue/nsThreadUtils.cpp b/xpcom/glue/nsThreadUtils.cpp index b6a37a7b83..8743c0d5fb 100644 --- a/xpcom/glue/nsThreadUtils.cpp +++ b/xpcom/glue/nsThreadUtils.cpp @@ -19,8 +19,6 @@ #ifdef XP_WIN #include <windows.h> -#elif defined(XP_MACOSX) -#include <sys/resource.h> #endif using namespace mozilla; @@ -439,12 +437,6 @@ nsAutoLowPriorityIO::nsAutoLowPriorityIO() #if defined(XP_WIN) lowIOPrioritySet = SetThreadPriority(GetCurrentThread(), THREAD_MODE_BACKGROUND_BEGIN); -#elif defined(XP_MACOSX) - oldPriority = getiopolicy_np(IOPOL_TYPE_DISK, IOPOL_SCOPE_THREAD); - lowIOPrioritySet = oldPriority != -1 && - setiopolicy_np(IOPOL_TYPE_DISK, - IOPOL_SCOPE_THREAD, - IOPOL_THROTTLE) != -1; #else lowIOPrioritySet = false; #endif @@ -457,9 +449,5 @@ nsAutoLowPriorityIO::~nsAutoLowPriorityIO() // On Windows the old thread priority is automatically restored SetThreadPriority(GetCurrentThread(), THREAD_MODE_BACKGROUND_END); } -#elif defined(XP_MACOSX) - if (MOZ_LIKELY(lowIOPrioritySet)) { - setiopolicy_np(IOPOL_TYPE_DISK, IOPOL_SCOPE_THREAD, oldPriority); - } #endif } |