| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "base/threading/platform_thread.h" | 5 #include "base/threading/platform_thread.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include "base/debug/alias.h" | 9 #include "base/debug/alias.h" |
| 10 #include "base/debug/profiler.h" | 10 #include "base/debug/profiler.h" |
| (...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 274 case THREAD_PRIORITY_TIME_CRITICAL: | 274 case THREAD_PRIORITY_TIME_CRITICAL: |
| 275 return ThreadPriority::REALTIME_AUDIO; | 275 return ThreadPriority::REALTIME_AUDIO; |
| 276 case THREAD_PRIORITY_ERROR_RETURN: | 276 case THREAD_PRIORITY_ERROR_RETURN: |
| 277 DPCHECK(false) << "GetThreadPriority error"; // Falls through. | 277 DPCHECK(false) << "GetThreadPriority error"; // Falls through. |
| 278 default: | 278 default: |
| 279 NOTREACHED() << "Unexpected priority: " << priority; | 279 NOTREACHED() << "Unexpected priority: " << priority; |
| 280 return ThreadPriority::NORMAL; | 280 return ThreadPriority::NORMAL; |
| 281 } | 281 } |
| 282 } | 282 } |
| 283 | 283 |
| 284 // static |
| 285 bool PlatformThread::SetChildThreadPriorityInCurrentProcess( |
| 286 PlatformThreadHandle thread_handle, |
| 287 PlatformThreadId tid, |
| 288 ThreadPriority priority) { |
| 289 NOTIMPLEMENTED(); |
| 290 return false; |
| 291 } |
| 292 |
| 284 } // namespace base | 293 } // namespace base |
| OLD | NEW |