Home
last modified time | relevance | path

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

/external/libchrome/base/threading/
Dplatform_thread_unittest.cc223 const ThreadPriority kThreadPriorityTestValues[] = {
229 ThreadPriority::REALTIME_AUDIO,
231 ThreadPriority::DISPLAY,
234 ThreadPriority::BACKGROUND,
235 ThreadPriority::NORMAL,
236 ThreadPriority::BACKGROUND};
251 explicit ThreadPriorityTestThread(ThreadPriority priority) in ThreadPriorityTestThread()
258 EXPECT_EQ(ThreadPriority::NORMAL, in RunTest()
266 const ThreadPriority priority_;
280 PlatformThread::SetCurrentThreadPriority(ThreadPriority::DISPLAY); in TEST()
[all …]
Dplatform_thread_linux.cc36 {ThreadPriority::BACKGROUND, 10},
37 {ThreadPriority::NORMAL, 0},
38 {ThreadPriority::DISPLAY, -8},
39 {ThreadPriority::REALTIME_AUDIO, -10},
42 bool SetCurrentThreadPriorityForPlatform(ThreadPriority priority) { in SetCurrentThreadPriorityForPlatform()
44 return priority == ThreadPriority::REALTIME_AUDIO && in SetCurrentThreadPriorityForPlatform()
51 bool GetCurrentThreadPriorityForPlatform(ThreadPriority* priority) { in GetCurrentThreadPriorityForPlatform()
59 *priority = ThreadPriority::REALTIME_AUDIO; in GetCurrentThreadPriorityForPlatform()
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_posix.cc40 : delegate(NULL), joinable(false), priority(ThreadPriority::NORMAL) {} in ThreadParams()
44 ThreadPriority priority;
84 ThreadPriority priority) { in CreateThread()
189 ThreadPriority priority) { in CreateWithPriority()
199 delegate, &unused, ThreadPriority::NORMAL); in CreateNonJoinable()
221 void PlatformThread::SetCurrentThreadPriority(ThreadPriority priority) { in SetCurrentThreadPriority()
243 ThreadPriority PlatformThread::GetCurrentThreadPriority() { in GetCurrentThreadPriority()
246 return ThreadPriority::NORMAL; in GetCurrentThreadPriority()
249 ThreadPriority platform_specific_priority; in GetCurrentThreadPriority()
262 return ThreadPriority::NORMAL; in GetCurrentThreadPriority()
Dplatform_thread.h102 enum class ThreadPriority : int { enum
164 ThreadPriority::NORMAL); in Create()
171 ThreadPriority priority);
194 static void SetCurrentThreadPriority(ThreadPriority priority);
196 static ThreadPriority GetCurrentThreadPriority();
Dplatform_thread_mac.mm165 void PlatformThread::SetCurrentThreadPriority(ThreadPriority priority) {
171 case ThreadPriority::NORMAL:
172 case ThreadPriority::BACKGROUND:
173 case ThreadPriority::DISPLAY:
177 case ThreadPriority::REALTIME_AUDIO:
188 ThreadPriority PlatformThread::GetCurrentThreadPriority() {
193 return ThreadPriority::NORMAL;
195 ThreadPriority thread_priority =
196 static_cast<ThreadPriority>(priority.intValue);
198 case ThreadPriority::BACKGROUND:
[all …]
Dsimple_thread.h63 Options() : stack_size_(0), priority_(ThreadPriority::NORMAL) {} in Options()
64 explicit Options(ThreadPriority priority) in Options()
75 void set_priority(ThreadPriority priority) { priority_ = priority; } in set_priority()
76 ThreadPriority priority() const { return priority_; } in priority()
79 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()
Dthread.cc44 priority(ThreadPriority::NORMAL) { in Options()
52 priority(ThreadPriority::NORMAL) { in Options()
Dthread.h70 ThreadPriority priority;
Dsimple_thread.cc42 if (options_.priority() == ThreadPriority::NORMAL) { in Start()
/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()
/external/libchrome/sandbox/win/src/
Dnt_internals.h282 ThreadPriority, enumerator