| 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/sequenced_worker_pool.h" | 5 #include "base/threading/sequenced_worker_pool.h" | 
| 6 | 6 | 
| 7 #include <list> | 7 #include <list> | 
| 8 #include <map> | 8 #include <map> | 
| 9 #include <set> | 9 #include <set> | 
| 10 #include <utility> | 10 #include <utility> | 
| 11 #include <vector> | 11 #include <vector> | 
| 12 | 12 | 
| 13 #include "base/atomic_sequence_num.h" | 13 #include "base/atomic_sequence_num.h" | 
| 14 #include "base/callback.h" | 14 #include "base/callback.h" | 
| 15 #include "base/compiler_specific.h" | 15 #include "base/compiler_specific.h" | 
| 16 #include "base/critical_closure.h" | 16 #include "base/critical_closure.h" | 
| 17 #include "base/debug/trace_event.h" |  | 
| 18 #include "base/lazy_instance.h" | 17 #include "base/lazy_instance.h" | 
| 19 #include "base/logging.h" | 18 #include "base/logging.h" | 
| 20 #include "base/memory/linked_ptr.h" | 19 #include "base/memory/linked_ptr.h" | 
| 21 #include "base/message_loop/message_loop_proxy.h" | 20 #include "base/message_loop/message_loop_proxy.h" | 
| 22 #include "base/stl_util.h" | 21 #include "base/stl_util.h" | 
| 23 #include "base/strings/stringprintf.h" | 22 #include "base/strings/stringprintf.h" | 
| 24 #include "base/synchronization/condition_variable.h" | 23 #include "base/synchronization/condition_variable.h" | 
| 25 #include "base/synchronization/lock.h" | 24 #include "base/synchronization/lock.h" | 
| 26 #include "base/threading/platform_thread.h" | 25 #include "base/threading/platform_thread.h" | 
| 27 #include "base/threading/simple_thread.h" | 26 #include "base/threading/simple_thread.h" | 
| 28 #include "base/threading/thread_local.h" | 27 #include "base/threading/thread_local.h" | 
| 29 #include "base/threading/thread_restrictions.h" | 28 #include "base/threading/thread_restrictions.h" | 
| 30 #include "base/time/time.h" | 29 #include "base/time/time.h" | 
|  | 30 #include "base/trace_event/trace_event.h" | 
| 31 #include "base/tracked_objects.h" | 31 #include "base/tracked_objects.h" | 
| 32 | 32 | 
| 33 #if defined(OS_MACOSX) | 33 #if defined(OS_MACOSX) | 
| 34 #include "base/mac/scoped_nsautorelease_pool.h" | 34 #include "base/mac/scoped_nsautorelease_pool.h" | 
| 35 #elif defined(OS_WIN) | 35 #elif defined(OS_WIN) | 
| 36 #include "base/win/scoped_com_initializer.h" | 36 #include "base/win/scoped_com_initializer.h" | 
| 37 #endif | 37 #endif | 
| 38 | 38 | 
| 39 #if !defined(OS_NACL) | 39 #if !defined(OS_NACL) | 
| 40 #include "base/metrics/histogram.h" | 40 #include "base/metrics/histogram.h" | 
| (...skipping 1232 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1273 void SequencedWorkerPool::Shutdown(int max_new_blocking_tasks_after_shutdown) { | 1273 void SequencedWorkerPool::Shutdown(int max_new_blocking_tasks_after_shutdown) { | 
| 1274   DCHECK(constructor_message_loop_->BelongsToCurrentThread()); | 1274   DCHECK(constructor_message_loop_->BelongsToCurrentThread()); | 
| 1275   inner_->Shutdown(max_new_blocking_tasks_after_shutdown); | 1275   inner_->Shutdown(max_new_blocking_tasks_after_shutdown); | 
| 1276 } | 1276 } | 
| 1277 | 1277 | 
| 1278 bool SequencedWorkerPool::IsShutdownInProgress() { | 1278 bool SequencedWorkerPool::IsShutdownInProgress() { | 
| 1279   return inner_->IsShutdownInProgress(); | 1279   return inner_->IsShutdownInProgress(); | 
| 1280 } | 1280 } | 
| 1281 | 1281 | 
| 1282 }  // namespace base | 1282 }  // namespace base | 
| OLD | NEW | 
|---|