Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2015 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_internal_posix.h" | |
| 6 | |
| 7 #include "base/logging.h" | |
| 8 | |
| 9 namespace base { | |
| 10 | |
| 11 namespace internal { | |
| 12 | |
| 13 int ThreadPriorityToNiceValue(ThreadPriority priority) { | |
| 14 for (const ThreadPriorityToNiceValuePair& tnp : | |
|
rvargas (doing something else)
2015/03/17 22:15:21
nit: don't abbreviate tnp
gab
2015/03/18 19:01:05
how about "pair"? Or do you prefer something verbo
rvargas (doing something else)
2015/03/18 22:54:23
"pair" is fine
| |
| 15 kThreadPriorityToNiceValueMap) { | |
| 16 if (tnp.priority == priority) | |
| 17 return tnp.nice_value; | |
| 18 } | |
| 19 NOTREACHED() << "Unknown ThreadPriority"; | |
| 20 return 0; | |
| 21 } | |
| 22 | |
| 23 } // namespace internal | |
| 24 | |
| 25 } // namespace base | |
| OLD | NEW |