| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "base/threading/platform_thread.h" |
| 6 |
| 7 #include "base/threading/platform_thread_internal_posix.h" |
| 8 |
| 9 namespace base { |
| 10 |
| 11 namespace internal { |
| 12 |
| 13 // TODO(scottmg): Port. |
| 14 const ThreadPriorityToNiceValuePair kThreadPriorityToNiceValueMap[4] = { |
| 15 {ThreadPriority::BACKGROUND, 10}, |
| 16 {ThreadPriority::NORMAL, 0}, |
| 17 {ThreadPriority::DISPLAY, -8}, |
| 18 {ThreadPriority::REALTIME_AUDIO, -10}, |
| 19 }; |
| 20 |
| 21 bool SetCurrentThreadPriorityForPlatform(ThreadPriority priority) { |
| 22 // TODO(scottmg): Port. |
| 23 return false; |
| 24 } |
| 25 |
| 26 bool GetCurrentThreadPriorityForPlatform(ThreadPriority* priority) { |
| 27 // TODO(scottmg): Port. |
| 28 return false; |
| 29 } |
| 30 |
| 31 } // namespace internal |
| 32 |
| 33 void InitThreading() { |
| 34 // TODO(scottmg): Port. |
| 35 } |
| 36 |
| 37 void TerminateOnThread() { |
| 38 // TODO(scottmg): Port. |
| 39 } |
| 40 |
| 41 size_t GetDefaultThreadStackSize(const pthread_attr_t& attributes) { |
| 42 // TODO(scottmg): Port. |
| 43 return 0; |
| 44 } |
| 45 |
| 46 // static |
| 47 void PlatformThread::SetName(const std::string& name) { |
| 48 // TODO(scottmg): Port. |
| 49 } |
| 50 |
| 51 } // namespace base |
| OLD | NEW |