hal/fallback/FallbackProcessPriority.cpp
author Andrea Marchesini <amarchesini@mozilla.com>
Wed, 07 Jun 2017 09:59:00 +0200
changeset 413129 d95970dc9b7d41ed028960c7aeacd3584bdef689
parent 411350 cb62a593770c8e7d02ae8344c018abe79a747406
child 508163 6f3709b3878117466168c40affa7bca0b60cf75b
permissions -rw-r--r--
Bug 1366356 - Decrease the process priority of content processes that are not running a foreground tab - part 2 - enabled if the platform specific code is ready, r=smaug

/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
 * You can obtain one at http://mozilla.org/MPL/2.0/. */

#include "Hal.h"
#include "HalLog.h"

using namespace mozilla::hal;

namespace mozilla {
namespace hal_impl {

bool
SetProcessPrioritySupported()
{
  return false;
}

void
SetProcessPriority(int aPid, ProcessPriority aPriority)
{
  HAL_LOG("FallbackProcessPriority - SetProcessPriority(%d, %s)\n",
          aPid, ProcessPriorityToString(aPriority));
}

} // namespace hal_impl
} // namespace mozilla