mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 841563 - Actually set PROCESS_PRIORITY_FOREGROUND_HIGH when we want to. r=cjones
This commit is contained in:
parent
75e33d8f84
commit
5a5907d4d7
@ -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