/external/libchrome/mojo/public/cpp/base/ |
D | thread_priority_mojom_traits.cc | 10 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 …]
|
D | thread_priority_unittest.cc | 11 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()
|
D | thread_priority_mojom_traits.h | 15 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()
|
D | thread_priority.typemap | 13 type_mappings = [ "mojo_base.mojom.ThreadPriority=base::ThreadPriority" ]
|
/external/libchrome/base/threading/ |
D | platform_thread_linux.cc | 35 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 …]
|
D | platform_thread_android.cc | 31 {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()
|
D | platform_thread_unittest.cc | 221 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 …]
|
D | platform_thread_posix.cc | 46 : 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 …]
|
D | platform_thread_internal_posix.h | 16 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);
|
D | platform_thread.h | 108 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);
|
D | platform_thread_internal_posix.cc | 14 int ThreadPriorityToNiceValue(ThreadPriority priority) { in ThreadPriorityToNiceValue() 23 ThreadPriority NiceValueToThreadPriority(int nice_value) { in NiceValueToThreadPriority() 34 return ThreadPriority::BACKGROUND; in NiceValueToThreadPriority()
|
D | simple_thread.h | 65 explicit Options(ThreadPriority priority_in) : priority(priority_in) {} in Options() 75 ThreadPriority priority = ThreadPriority::NORMAL;
|
D | thread.h | 88 ThreadPriority priority = ThreadPriority::NORMAL;
|
/external/libchrome/base/task_scheduler/ |
D | environment_config.h | 36 ThreadPriority priority_hint; 38 {"Foreground", base::ThreadPriority::NORMAL}, 39 {"ForegroundBlocking", base::ThreadPriority::NORMAL}, 40 {"Background", base::ThreadPriority::BACKGROUND}, 41 {"BackgroundBlocking", base::ThreadPriority::BACKGROUND},
|
D | scheduler_worker.h | 117 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_;
|
D | scheduler_worker_unittest.cc | 86 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 …]
|
D | scheduler_worker.cc | 42 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()
|
D | scheduler_single_thread_task_runner_manager_unittest.cc | 84 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/ |
D | platform_thread.h | 29 enum ThreadPriority { enum 53 ThreadPriority priority = kNormalPriority); 79 bool SetPriority(ThreadPriority priority); 82 const ThreadPriority priority_ = kNormalPriority;
|
D | task_queue_win.cc | 55 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()
|
D | task_queue_stdlib.cc | 35 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/ |
D | thread_priority.mojom | 7 // Corresponds to |base::ThreadPriority| 8 enum ThreadPriority {
|
/external/libchrome/base/android/ |
D | java_handler_thread.h | 32 base::ThreadPriority priority = base::ThreadPriority::NORMAL);
|
/external/llvm-project/clang-tools-extra/clangd/index/ |
D | BackgroundQueue.cpp | 39 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/ |
D | Threading.h | 187 enum class ThreadPriority { enum 198 SetThreadPriorityResult set_thread_priority(ThreadPriority Priority);
|