Home
last modified time | relevance | path

Searched refs:ThreadPriority (Results 1 – 10 of 10) sorted by relevance

/external/libchrome/base/threading/
Dplatform_thread_linux.cc36 ThreadPriority priority) { in ThreadPriorityToCgroupDirectory()
38 case ThreadPriority::NORMAL: in ThreadPriorityToCgroupDirectory()
40 case ThreadPriority::BACKGROUND: in ThreadPriorityToCgroupDirectory()
42 case ThreadPriority::DISPLAY: in ThreadPriorityToCgroupDirectory()
43 case ThreadPriority::REALTIME_AUDIO: in ThreadPriorityToCgroupDirectory()
62 ThreadPriority priority) { in SetThreadCgroupForThreadPriority()
75 ThreadPriority priority) { in SetThreadCgroupsForThreadPriority()
95 {ThreadPriority::BACKGROUND, 10},
96 {ThreadPriority::NORMAL, 0},
97 {ThreadPriority::DISPLAY, -8},
[all …]
Dplatform_thread_unittest.cc221 const ThreadPriority kThreadPriorityTestValues[] = {
227 ThreadPriority::REALTIME_AUDIO,
229 ThreadPriority::DISPLAY,
232 ThreadPriority::BACKGROUND,
233 ThreadPriority::NORMAL,
234 ThreadPriority::BACKGROUND};
238 explicit ThreadPriorityTestThread(ThreadPriority priority) in ThreadPriorityTestThread()
245 EXPECT_EQ(ThreadPriority::NORMAL, in RunTest()
253 const ThreadPriority priority_;
268 PlatformThread::SetCurrentThreadPriority(ThreadPriority::DISPLAY); in TEST()
[all …]
Dplatform_thread_posix.cc41 : delegate(NULL), joinable(false), priority(ThreadPriority::NORMAL) {} in ThreadParams()
45 ThreadPriority priority;
85 ThreadPriority priority) { in CreateThread()
190 ThreadPriority priority) { in CreateWithPriority()
198 ThreadPriority::NORMAL); in CreateNonJoinable()
204 ThreadPriority priority) { in CreateNonJoinableWithPriority()
245 void PlatformThread::SetCurrentThreadPriority(ThreadPriority priority) { in SetCurrentThreadPriority()
267 ThreadPriority PlatformThread::GetCurrentThreadPriority() { in GetCurrentThreadPriority()
270 return ThreadPriority::NORMAL; in GetCurrentThreadPriority()
273 ThreadPriority platform_specific_priority; in GetCurrentThreadPriority()
[all …]
Dplatform_thread_internal_posix.h16 ThreadPriority priority;
27 int ThreadPriorityToNiceValue(ThreadPriority priority);
31 BASE_EXPORT ThreadPriority NiceValueToThreadPriority(int nice_value);
37 bool SetCurrentThreadPriorityForPlatform(ThreadPriority priority);
42 bool GetCurrentThreadPriorityForPlatform(ThreadPriority* priority);
Dplatform_thread.h108 enum class ThreadPriority : int { enum
170 ThreadPriority::NORMAL); in Create()
177 ThreadPriority priority);
188 ThreadPriority priority);
210 static void SetCurrentThreadPriority(ThreadPriority priority);
212 static ThreadPriority GetCurrentThreadPriority();
225 ThreadPriority priority);
Dplatform_thread_internal_posix.cc14 int ThreadPriorityToNiceValue(ThreadPriority priority) { in ThreadPriorityToNiceValue()
23 ThreadPriority NiceValueToThreadPriority(int nice_value) { in NiceValueToThreadPriority()
34 return ThreadPriority::BACKGROUND; in NiceValueToThreadPriority()
Dsimple_thread.h65 explicit Options(ThreadPriority priority_in) : priority(priority_in) {} in Options()
75 ThreadPriority priority = ThreadPriority::NORMAL;
Dthread.h85 ThreadPriority priority = ThreadPriority::NORMAL;
/external/webrtc/webrtc/base/
Dplatform_thread.h38 enum ThreadPriority { enum
72 bool SetPriority(ThreadPriority priority);
Dplatform_thread.cc196 bool PlatformThread::SetPriority(ThreadPriority priority) { in SetPriority()