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> |
| 8 |
7 #include "base/debug/alias.h" | 9 #include "base/debug/alias.h" |
8 #include "base/debug/profiler.h" | 10 #include "base/debug/profiler.h" |
9 #include "base/logging.h" | 11 #include "base/logging.h" |
10 #include "base/threading/thread_id_name_manager.h" | 12 #include "base/threading/thread_id_name_manager.h" |
11 #include "base/threading/thread_restrictions.h" | 13 #include "base/threading/thread_restrictions.h" |
12 #include "base/tracked_objects.h" | 14 #include "base/tracked_objects.h" |
13 #include "base/win/scoped_handle.h" | 15 #include "base/win/scoped_handle.h" |
14 #include "base/win/windows_version.h" | 16 #include "base/win/windows_version.h" |
15 | 17 |
16 namespace base { | 18 namespace base { |
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
273 return ThreadPriority::REALTIME_AUDIO; | 275 return ThreadPriority::REALTIME_AUDIO; |
274 case THREAD_PRIORITY_ERROR_RETURN: | 276 case THREAD_PRIORITY_ERROR_RETURN: |
275 DPCHECK(false) << "GetThreadPriority error"; // Falls through. | 277 DPCHECK(false) << "GetThreadPriority error"; // Falls through. |
276 default: | 278 default: |
277 NOTREACHED() << "Unexpected priority: " << priority; | 279 NOTREACHED() << "Unexpected priority: " << priority; |
278 return ThreadPriority::NORMAL; | 280 return ThreadPriority::NORMAL; |
279 } | 281 } |
280 } | 282 } |
281 | 283 |
282 } // namespace base | 284 } // namespace base |
OLD | NEW |