| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/worker_pool_posix.h" | 5 #include "base/threading/worker_pool_posix.h" |
| 6 | 6 |
| 7 #include "base/lazy_instance.h" | 7 #include "base/lazy_instance.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "base/stringprintf.h" | 10 #include "base/stringprintf.h" |
| 11 #include "base/task.h" | 11 #include "base/task.h" |
| 12 #include "base/threading/platform_thread.h" | 12 #include "base/threading/platform_thread.h" |
| 13 #include "base/threading/worker_pool.h" | 13 #include "base/threading/worker_pool.h" |
| 14 | 14 |
| 15 namespace base { | 15 namespace base { |
| 16 | 16 |
| 17 namespace { | 17 namespace { |
| 18 | 18 |
| 19 const int kIdleSecondsBeforeExit = 10 * 60; | 19 const int kIdleSecondsBeforeExit = 10 * 60; |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 return NULL; | 160 return NULL; |
| 161 } | 161 } |
| 162 } | 162 } |
| 163 | 163 |
| 164 Task* task = tasks_.front(); | 164 Task* task = tasks_.front(); |
| 165 tasks_.pop(); | 165 tasks_.pop(); |
| 166 return task; | 166 return task; |
| 167 } | 167 } |
| 168 | 168 |
| 169 } // namespace base | 169 } // namespace base |
| OLD | NEW |