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> | 7 #include <stddef.h> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
11 #include "base/lazy_instance.h" | 11 #include "base/lazy_instance.h" |
12 #include "base/logging.h" | 12 #include "base/logging.h" |
13 #include "base/macros.h" | 13 #include "base/macros.h" |
14 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
15 #include "base/message_loop/message_loop.h" | |
danakj
2017/02/07 23:16:46
looks out of place
awong
2017/02/08 01:55:50
oops. old code. deleted.
| |
15 #include "base/strings/stringprintf.h" | 16 #include "base/strings/stringprintf.h" |
16 #include "base/threading/platform_thread.h" | 17 #include "base/threading/platform_thread.h" |
17 #include "base/threading/thread_local.h" | 18 #include "base/threading/thread_local.h" |
18 #include "base/threading/worker_pool.h" | 19 #include "base/threading/worker_pool.h" |
19 #include "base/trace_event/trace_event.h" | 20 #include "base/trace_event/trace_event.h" |
20 #include "base/tracked_objects.h" | 21 #include "base/tracked_objects.h" |
21 | 22 |
22 using tracked_objects::TrackedTime; | 23 using tracked_objects::TrackedTime; |
23 | 24 |
24 namespace base { | 25 namespace base { |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
176 return PendingTask(FROM_HERE, base::Closure()); | 177 return PendingTask(FROM_HERE, base::Closure()); |
177 } | 178 } |
178 } | 179 } |
179 | 180 |
180 PendingTask pending_task = std::move(pending_tasks_.front()); | 181 PendingTask pending_task = std::move(pending_tasks_.front()); |
181 pending_tasks_.pop(); | 182 pending_tasks_.pop(); |
182 return pending_task; | 183 return pending_task; |
183 } | 184 } |
184 | 185 |
185 } // namespace base | 186 } // namespace base |
OLD | NEW |