Bug 841563 - Actually set PROCESS_PRIORITY_FOREGROUND_HIGH when we want to. r=cjones

This commit is contained in:
Justin Lebar 2013-02-15 08:40:01 -05:00
parent 2df4fee39a
commit d4e696a9c0
2 changed files with 4 additions and 2 deletions

View File

@ -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

View File

@ -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;