mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 05:41:12 +00:00
Bug 841563 - Actually set PROCESS_PRIORITY_FOREGROUND_HIGH when we want to. r=cjones
This commit is contained in:
parent
2df4fee39a
commit
d4e696a9c0
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user