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 #ifndef BASE_THREADING_PLATFORM_THREAD_INTERNAL_POSIX_H_
6 #define BASE_THREADING_PLATFORM_THREAD_INTERNAL_POSIX_H_
8 #include "base/threading/platform_thread.h"
14 struct ThreadPriorityToNiceValuePair
{
15 ThreadPriority priority
;
18 extern const ThreadPriorityToNiceValuePair kThreadPriorityToNiceValueMap
[4];
20 // Returns the nice value matching |priority| based on the platform-specific
21 // implementation of kThreadPriorityToNiceValueMap.
22 int ThreadPriorityToNiceValue(ThreadPriority priority
);
24 // Allows platform specific tweaks to the generic POSIX solution for
25 // SetThreadPriority. Returns true if the platform-specific implementation
26 // handled this |priority| change, false if the generic implementation should
28 bool HandleSetThreadPriorityForPlatform(PlatformThreadHandle handle
,
29 ThreadPriority priority
);
31 } // namespace internal
35 #endif // BASE_THREADING_PLATFORM_THREAD_INTERNAL_POSIX_H_