1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "base/threading/platform_thread_internal_posix.h"
7 #include "base/logging.h"
13 int ThreadPriorityToNiceValue(ThreadPriority priority
) {
14 for (const ThreadPriorityToNiceValuePair
& pair
:
15 kThreadPriorityToNiceValueMap
) {
16 if (pair
.priority
== priority
)
17 return pair
.nice_value
;
19 NOTREACHED() << "Unknown ThreadPriority";
23 } // namespace internal