mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-03 14:28:39 +09:00
Issue #1751 -- Remove XP_MACOSX conditionals and support files from /xpcom
This commit is contained in:
parent
ccf9e5f54b
commit
df94ccb22c
40 changed files with 27 additions and 2812 deletions
|
|
@ -21,8 +21,6 @@
|
|||
#include <windows.h>
|
||||
#include "mozilla/WindowsVersion.h"
|
||||
using mozilla::IsVistaOrLater;
|
||||
#elif defined(XP_MACOSX)
|
||||
#include <sys/resource.h>
|
||||
#endif
|
||||
|
||||
#include <pratom.h>
|
||||
|
|
@ -445,12 +443,6 @@ nsAutoLowPriorityIO::nsAutoLowPriorityIO()
|
|||
lowIOPrioritySet = IsVistaOrLater() &&
|
||||
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
|
||||
|
|
@ -463,9 +455,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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue