Home
last modified time | relevance | path

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

/external/libchrome/base/threading/
Dplatform_thread_linux.cc37 {ThreadPriority::BACKGROUND, 10},
38 {ThreadPriority::NORMAL, 0},
39 {ThreadPriority::DISPLAY, -6},
40 {ThreadPriority::REALTIME_AUDIO, -10},
43 bool SetCurrentThreadPriorityForPlatform(ThreadPriority priority) { in SetCurrentThreadPriorityForPlatform()
45 ThreadPriority current_priority; in SetCurrentThreadPriorityForPlatform()
46 if (priority != ThreadPriority::REALTIME_AUDIO && in SetCurrentThreadPriorityForPlatform()
48 current_priority == ThreadPriority::REALTIME_AUDIO) { in SetCurrentThreadPriorityForPlatform()
55 return priority == ThreadPriority::REALTIME_AUDIO && in SetCurrentThreadPriorityForPlatform()
62 bool GetCurrentThreadPriorityForPlatform(ThreadPriority* priority) { in GetCurrentThreadPriorityForPlatform()
[all …]
Dplatform_thread_posix.cc40 : delegate(NULL), joinable(false), priority(ThreadPriority::NORMAL) {} in ThreadParams()
44 ThreadPriority priority;
59 if (thread_params->priority != ThreadPriority::NORMAL) in ThreadFunc()
81 ThreadPriority priority) { in CreateThread()
186 ThreadPriority priority) { in CreateWithPriority()
196 delegate, &unused, ThreadPriority::NORMAL); in CreateNonJoinable()
213 void PlatformThread::SetCurrentThreadPriority(ThreadPriority priority) { in SetCurrentThreadPriority()
235 ThreadPriority PlatformThread::GetCurrentThreadPriority() { in GetCurrentThreadPriority()
238 return ThreadPriority::NORMAL; in GetCurrentThreadPriority()
241 ThreadPriority platform_specific_priority; in GetCurrentThreadPriority()
[all …]
Dplatform_thread_internal_posix.h15 ThreadPriority priority;
22 int ThreadPriorityToNiceValue(ThreadPriority priority);
26 ThreadPriority NiceValueToThreadPriority(int nice_value);
32 bool SetCurrentThreadPriorityForPlatform(ThreadPriority priority);
37 bool GetCurrentThreadPriorityForPlatform(ThreadPriority* priority);
Dplatform_thread.h102 enum class ThreadPriority { enum
164 ThreadPriority::NORMAL); in Create()
171 ThreadPriority priority);
189 static void SetCurrentThreadPriority(ThreadPriority priority);
191 static ThreadPriority GetCurrentThreadPriority();
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_unittest.cc192 const ThreadPriority kThreadPriorityTestValues[] = {
198 ThreadPriority::REALTIME_AUDIO,
200 ThreadPriority::DISPLAY,
203 ThreadPriority::BACKGROUND,
204 ThreadPriority::NORMAL,
205 ThreadPriority::BACKGROUND};
226 EXPECT_EQ(ThreadPriority::NORMAL, in RunTest()
Dplatform_thread_internal_posix.cc13 int ThreadPriorityToNiceValue(ThreadPriority priority) { in ThreadPriorityToNiceValue()
23 ThreadPriority NiceValueToThreadPriority(int nice_value) { in NiceValueToThreadPriority()
30 return ThreadPriority::NORMAL; in NiceValueToThreadPriority()
Dplatform_thread_mac.mm160 void PlatformThread::SetCurrentThreadPriority(ThreadPriority priority) {
166 case ThreadPriority::NORMAL:
169 case ThreadPriority::REALTIME_AUDIO:
179 ThreadPriority PlatformThread::GetCurrentThreadPriority() {
181 return ThreadPriority::NORMAL;
Dthread.cc43 priority(ThreadPriority::NORMAL) { in Options()
51 priority(ThreadPriority::NORMAL) { in Options()
Dthread.h69 ThreadPriority priority;
Dsimple_thread.cc33 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.h281 ThreadPriority, enumerator