Home
last modified time | relevance | path

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

/external/libchrome/mojo/public/cpp/base/
Dthread_priority_mojom_traits.cc10 mojo_base::mojom::ThreadPriority
11 EnumTraits<mojo_base::mojom::ThreadPriority, base::ThreadPriority>::ToMojom( in ToMojom()
12 base::ThreadPriority thread_priority) { in ToMojom()
14 case base::ThreadPriority::BACKGROUND: in ToMojom()
15 return mojo_base::mojom::ThreadPriority::BACKGROUND; in ToMojom()
16 case base::ThreadPriority::NORMAL: in ToMojom()
17 return mojo_base::mojom::ThreadPriority::NORMAL; in ToMojom()
18 case base::ThreadPriority::DISPLAY: in ToMojom()
19 return mojo_base::mojom::ThreadPriority::DISPLAY; in ToMojom()
20 case base::ThreadPriority::REALTIME_AUDIO: in ToMojom()
[all …]
Dthread_priority_unittest.cc11 TEST(ThreadPriorityTest, ThreadPriority) { in TEST() argument
12 static constexpr base::ThreadPriority kTestPriorities[] = { in TEST()
13 base::ThreadPriority::BACKGROUND, base::ThreadPriority::NORMAL, in TEST()
14 base::ThreadPriority::DISPLAY, base::ThreadPriority::REALTIME_AUDIO}; in TEST()
17 base::ThreadPriority priority_out; in TEST()
19 mojo_base::mojom::ThreadPriority serialized_priority = in TEST()
20 mojo::EnumTraits<mojo_base::mojom::ThreadPriority, in TEST()
21 base::ThreadPriority>::ToMojom(priority_in); in TEST()
23 (mojo::EnumTraits<mojo_base::mojom::ThreadPriority, in TEST()
24 base::ThreadPriority>::FromMojom(serialized_priority, in TEST()
Dthread_priority_mojom_traits.h15 EnumTraits<mojo_base::mojom::ThreadPriority, base::ThreadPriority> { in COMPONENT_EXPORT()
16 static mojo_base::mojom::ThreadPriority ToMojom( in COMPONENT_EXPORT()
17 base::ThreadPriority thread_priority); in COMPONENT_EXPORT()
18 static bool FromMojom(mojo_base::mojom::ThreadPriority input, in COMPONENT_EXPORT()
19 base::ThreadPriority* out); in COMPONENT_EXPORT()
Dthread_priority.typemap13 type_mappings = [ "mojo_base.mojom.ThreadPriority=base::ThreadPriority" ]
/external/libchrome/base/threading/
Dplatform_thread_linux.cc35 ThreadPriority priority) { in ThreadPriorityToCgroupDirectory()
37 case ThreadPriority::NORMAL: in ThreadPriorityToCgroupDirectory()
39 case ThreadPriority::BACKGROUND: in ThreadPriorityToCgroupDirectory()
41 case ThreadPriority::DISPLAY: in ThreadPriorityToCgroupDirectory()
42 case ThreadPriority::REALTIME_AUDIO: in ThreadPriorityToCgroupDirectory()
61 ThreadPriority priority) { in SetThreadCgroupForThreadPriority()
74 ThreadPriority priority) { in SetThreadCgroupsForThreadPriority()
94 {ThreadPriority::BACKGROUND, 10},
95 {ThreadPriority::NORMAL, 0},
96 {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_;
278 PlatformThread::SetCurrentThreadPriority(ThreadPriority::DISPLAY); in TEST()
[all …]
Dplatform_thread_posix.cc46 : delegate(nullptr), joinable(false), priority(ThreadPriority::NORMAL) {} in ThreadParams()
50 ThreadPriority priority;
90 ThreadPriority priority) { in CreateThread()
199 ThreadPriority priority) { in CreateWithPriority()
207 ThreadPriority::NORMAL); in CreateNonJoinable()
213 ThreadPriority priority) { in CreateNonJoinableWithPriority()
255 void PlatformThread::SetCurrentThreadPriority(ThreadPriority priority) { in SetCurrentThreadPriority()
277 ThreadPriority PlatformThread::GetCurrentThreadPriority() { in GetCurrentThreadPriority()
280 return ThreadPriority::NORMAL; in GetCurrentThreadPriority()
283 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);
216 static void SetCurrentThreadPriority(ThreadPriority priority);
218 static ThreadPriority GetCurrentThreadPriority();
231 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.h88 ThreadPriority priority = ThreadPriority::NORMAL;
/external/libchrome/base/task_scheduler/
Denvironment_config.h36 ThreadPriority priority_hint;
38 {"Foreground", base::ThreadPriority::NORMAL},
39 {"ForegroundBlocking", base::ThreadPriority::NORMAL},
40 {"Background", base::ThreadPriority::BACKGROUND},
41 {"BackgroundBlocking", base::ThreadPriority::BACKGROUND},
Dscheduler_worker_pool_unittest.cc116 "TestWorkerPool", "A", ThreadPriority::NORMAL, in CreateWorkerPool()
/external/libchrome/mojo/public/mojom/base/
Dthread_priority.mojom7 // Corresponds to |base::ThreadPriority|
8 enum ThreadPriority {
/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/base/
Dlazy_instance_unittest.cc250 base::ThreadPriority thread_priority, in BlockingConstructorThread()
289 base::ThreadPriority::BACKGROUND, &lazy_blocking, base::OnceClosure()); in TEST()
306 base::ThreadPriority::NORMAL, &lazy_blocking, in TEST()