| 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/worker_pool_posix.h" | 5 #include "base/threading/worker_pool_posix.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 7 #include "base/bind.h" | 9 #include "base/bind.h" |
| 8 #include "base/callback.h" | 10 #include "base/callback.h" |
| 9 #include "base/lazy_instance.h" | 11 #include "base/lazy_instance.h" |
| 10 #include "base/logging.h" | 12 #include "base/logging.h" |
| 13 #include "base/macros.h" |
| 11 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
| 12 #include "base/strings/stringprintf.h" | 15 #include "base/strings/stringprintf.h" |
| 13 #include "base/threading/platform_thread.h" | 16 #include "base/threading/platform_thread.h" |
| 14 #include "base/threading/thread_local.h" | 17 #include "base/threading/thread_local.h" |
| 15 #include "base/threading/worker_pool.h" | 18 #include "base/threading/worker_pool.h" |
| 16 #include "base/trace_event/trace_event.h" | 19 #include "base/trace_event/trace_event.h" |
| 17 #include "base/tracked_objects.h" | 20 #include "base/tracked_objects.h" |
| 18 | 21 |
| 19 using tracked_objects::TrackedTime; | 22 using tracked_objects::TrackedTime; |
| 20 | 23 |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 return PendingTask(FROM_HERE, base::Closure()); | 187 return PendingTask(FROM_HERE, base::Closure()); |
| 185 } | 188 } |
| 186 } | 189 } |
| 187 | 190 |
| 188 PendingTask pending_task = pending_tasks_.front(); | 191 PendingTask pending_task = pending_tasks_.front(); |
| 189 pending_tasks_.pop(); | 192 pending_tasks_.pop(); |
| 190 return pending_task; | 193 return pending_task; |
| 191 } | 194 } |
| 192 | 195 |
| 193 } // namespace base | 196 } // namespace base |
| OLD | NEW |