Home
last modified time | relevance | path

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

12

/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_android.cc31 {ThreadPriority::BACKGROUND, 10},
32 {ThreadPriority::NORMAL, 0},
33 {ThreadPriority::DISPLAY, -4},
34 {ThreadPriority::REALTIME_AUDIO, -16},
37 bool SetCurrentThreadPriorityForPlatform(ThreadPriority priority) { in SetCurrentThreadPriorityForPlatform()
40 if (priority == ThreadPriority::REALTIME_AUDIO) { in SetCurrentThreadPriorityForPlatform()
48 bool GetCurrentThreadPriorityForPlatform(ThreadPriority* priority) { in GetCurrentThreadPriorityForPlatform()
50 *priority = ThreadPriority::NORMAL; in GetCurrentThreadPriorityForPlatform()
54 *priority = ThreadPriority::REALTIME_AUDIO; in GetCurrentThreadPriorityForPlatform()
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.h117 SchedulerWorker(ThreadPriority priority_hint,
181 ThreadPriority GetDesiredThreadPriority() const;
185 void UpdateThreadPriority(ThreadPriority desired_thread_priority);
242 const ThreadPriority priority_hint_;
247 ThreadPriority current_thread_priority_;
Dscheduler_worker_unittest.cc86 ThreadPriority::NORMAL, in SetUp()
520 auto worker = MakeRefCounted<SchedulerWorker>(ThreadPriority::NORMAL, in TEST()
542 auto worker = MakeRefCounted<SchedulerWorker>(ThreadPriority::NORMAL, in TEST()
565 auto worker = MakeRefCounted<SchedulerWorker>(ThreadPriority::NORMAL, in TEST()
589 auto worker = MakeRefCounted<SchedulerWorker>(ThreadPriority::NORMAL, in TEST()
615 auto worker = MakeRefCounted<SchedulerWorker>(ThreadPriority::NORMAL, in TEST()
663 auto worker = MakeRefCounted<SchedulerWorker>(ThreadPriority::NORMAL, in TEST()
693 expected_thread_priority_(ThreadPriority::BACKGROUND) {} in ExpectThreadPriorityDelegate()
695 void SetExpectedThreadPriority(ThreadPriority expected_thread_priority) { in SetExpectedThreadPriority()
727 ThreadPriority expected_thread_priority_;
[all …]
Dscheduler_worker.cc42 ThreadPriority priority_hint, in SchedulerWorker()
60 priority_hint_ != ThreadPriority::BACKGROUND); in SchedulerWorker()
161 ThreadPriority SchedulerWorker::GetDesiredThreadPriority() const { in GetDesiredThreadPriority()
164 return ThreadPriority::NORMAL; in GetDesiredThreadPriority()
170 ThreadPriority desired_thread_priority) { in UpdateThreadPriority()
179 if (priority_hint_ == ThreadPriority::BACKGROUND) { in ThreadMain()
Dscheduler_single_thread_task_runner_manager_unittest.cc84 void CaptureThreadPriority(ThreadPriority* thread_priority) { in CaptureThreadPriority()
271 ThreadPriority thread_priority_background; in TEST_P()
279 ThreadPriority thread_priority_normal; in TEST_P()
291 EXPECT_EQ(ThreadPriority::BACKGROUND, thread_priority_background); in TEST_P()
293 EXPECT_EQ(ThreadPriority::NORMAL, thread_priority_background); in TEST_P()
294 EXPECT_EQ(ThreadPriority::NORMAL, thread_priority_normal); in TEST_P()
/external/webrtc/rtc_base/
Dplatform_thread.h29 enum ThreadPriority { enum
53 ThreadPriority priority = kNormalPriority);
79 bool SetPriority(ThreadPriority priority);
82 const ThreadPriority priority_ = kNormalPriority;
Dtask_queue_win.cc55 rtc::ThreadPriority TaskQueuePriorityToThreadPriority( in TaskQueuePriorityToThreadPriority()
159 TaskQueueWin(absl::string_view queue_name, rtc::ThreadPriority priority);
177 rtc::ThreadPriority priority) in WorkerThread()
215 rtc::ThreadPriority priority) in TaskQueueWin()
Dtask_queue_stdlib.cc35 rtc::ThreadPriority TaskQueuePriorityToThreadPriority( in TaskQueuePriorityToThreadPriority()
52 TaskQueueStdlib(absl::string_view queue_name, rtc::ThreadPriority priority);
125 rtc::ThreadPriority priority) in TaskQueueStdlib()
/external/libchrome/mojo/public/mojom/base/
Dthread_priority.mojom7 // Corresponds to |base::ThreadPriority|
8 enum ThreadPriority {
/external/libchrome/base/android/
Djava_handler_thread.h32 base::ThreadPriority priority = base::ThreadPriority::NORMAL);
/external/llvm-project/clang-tools-extra/clangd/index/
DBackgroundQueue.cpp39 if (Task->ThreadPri != llvm::ThreadPriority::Default && in work()
43 if (Task->ThreadPri != llvm::ThreadPriority::Default) in work()
44 llvm::set_thread_priority(llvm::ThreadPriority::Default); in work()
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/
DThreading.h187 enum class ThreadPriority { enum
198 SetThreadPriorityResult set_thread_priority(ThreadPriority Priority);

12