hal/fallback/FallbackProcessPriority.cpp
author Alan Huang <ahuang@mozilla.com>
Tue, 01 Oct 2013 11:54:59 +0800
changeset 149419 bca0c6bde0ef1de4091b4cfcc0d81726f028476f
parent 131482 2c50a1950fd8abe2bba80d273695a520d8d56a08
child 207493 932a92a16c29d31db9bb9b1bed8d9d20844ce405
permissions -rw-r--r--
Bug 822325: Implement an LRU pool for background app processes. The LRU app will get the smallest oom_adj and get killed last. r=khuey

/* 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"

using namespace mozilla::hal;

namespace mozilla {
namespace hal_impl {

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

} // hal_impl
} // namespace mozilla