From d4e696a9c02cd4cbc37c2a55497689ef82972c1e Mon Sep 17 00:00:00 2001 From: Justin Lebar Date: Fri, 15 Feb 2013 08:40:01 -0500 Subject: [PATCH] Bug 841563 - Actually set PROCESS_PRIORITY_FOREGROUND_HIGH when we want to. r=cjones --- dom/ipc/ProcessPriorityManager.cpp | 2 +- hal/HalTypes.h | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/dom/ipc/ProcessPriorityManager.cpp b/dom/ipc/ProcessPriorityManager.cpp index 424cbc603dd1..a781ad14577b 100644 --- a/dom/ipc/ProcessPriorityManager.cpp +++ b/dom/ipc/ProcessPriorityManager.cpp @@ -541,7 +541,7 @@ ProcessPriorityManager::SetIsForeground() mProcessPriority = foregroundPriority; LOG("Setting priority to %s.", ProcessPriorityToString(mProcessPriority)); - hal::SetProcessPriority(getpid(), PROCESS_PRIORITY_FOREGROUND); + hal::SetProcessPriority(getpid(), mProcessPriority); } void diff --git a/hal/HalTypes.h b/hal/HalTypes.h index c080260e89c6..970f35d89074 100644 --- a/hal/HalTypes.h +++ b/hal/HalTypes.h @@ -13,7 +13,9 @@ namespace mozilla { namespace hal { /** - * XXX + * These constants specify special values for content process IDs. You can get + * a content process ID by calling ContentChild::GetID() or + * ContentParent::GetChildID(). */ const uint64_t CONTENT_PROCESS_ID_UNKNOWN = uint64_t(-1); const uint64_t CONTENT_PROCESS_ID_MAIN = 0;