2014-05-05 19:37:00 +04:00
|
|
|
/* 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"
|
2014-09-24 17:23:18 +04:00
|
|
|
#include "HalLog.h"
|
2014-05-05 19:37:00 +04:00
|
|
|
|
|
|
|
using namespace mozilla::hal;
|
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
namespace hal_impl {
|
|
|
|
|
|
|
|
void
|
|
|
|
SetCurrentThreadPriority(ThreadPriority aPriority)
|
|
|
|
{
|
2016-12-16 06:16:31 +03:00
|
|
|
HAL_LOG("FallbackThreadPriority - SetCurrentThreadPriority(%s)\n",
|
2014-09-24 17:23:18 +04:00
|
|
|
ThreadPriorityToString(aPriority));
|
2014-05-05 19:37:00 +04:00
|
|
|
}
|
|
|
|
|
2015-05-07 16:53:47 +03:00
|
|
|
void
|
|
|
|
SetThreadPriority(PlatformThreadId aThreadId,
|
|
|
|
ThreadPriority aPriority)
|
|
|
|
{
|
2016-12-16 06:16:31 +03:00
|
|
|
HAL_LOG("FallbackThreadPriority - SetThreadPriority(%d, %s)\n",
|
2015-05-07 16:53:47 +03:00
|
|
|
aThreadId, ThreadPriorityToString(aPriority));
|
|
|
|
}
|
|
|
|
|
2015-07-13 18:25:42 +03:00
|
|
|
} // namespace hal_impl
|
2014-05-05 19:37:00 +04:00
|
|
|
} // namespace mozilla
|