author Justin Lebar <justin.lebar@gmail.com>
Thu, 09 May 2013 16:27:06 -0400
changeset 138257 2c50a1950fd8abe2bba80d273695a520d8d56a08
parent 104605 0e213ba77dca4032ddc876d788d83fa28eb48f49
child 158048 bca0c6bde0ef1de4091b4cfcc0d81726f028476f
permissions -rw-r--r--
Bug 870181 - Part 1: Add an additional LowCPUPriority argument to hal::SetProcessPriority. r=bent This patch also makes it an error to call hal::SetProcessPriority from a child process.

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

SetProcessPriority(int aPid,
                   ProcessPriority aPriority,
                   ProcessCPUPriority aCPUPriority)
  HAL_LOG(("FallbackProcessPriority - SetProcessPriority(%d, %s)\n",
           aPid, ProcessPriorityToString(aPriority, aCPUPriority)));

} // hal_impl
} // namespace mozilla