OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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/worker_pool.h" | 5 #include "base/worker_pool.h" |
6 #include "base/worker_pool_linux.h" | 6 #include "base/worker_pool_linux.h" |
7 | 7 |
8 #include "base/lazy_instance.h" | 8 #include "base/lazy_instance.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/platform_thread.h" | 10 #include "base/platform_thread.h" |
11 #include "base/ref_counted.h" | 11 #include "base/ref_counted.h" |
12 #include "base/string_util.h" | 12 #include "base/string_util.h" |
13 #include "base/task.h" | 13 #include "base/task.h" |
14 | 14 |
15 namespace { | 15 namespace { |
16 | 16 |
17 const int kIdleSecondsBeforeExit = 10 * 60; | 17 const int kIdleSecondsBeforeExit = 10 * 60; |
18 const int kWorkerThreadStackSize = 64 * 1024; | 18 // A stack size of 64 KB is too small for the CERT_PKIXVerifyCert |
| 19 // function of NSS because of NSS bug 439169. |
| 20 const int kWorkerThreadStackSize = 128 * 1024; |
19 | 21 |
20 class WorkerPoolImpl { | 22 class WorkerPoolImpl { |
21 public: | 23 public: |
22 WorkerPoolImpl(); | 24 WorkerPoolImpl(); |
23 ~WorkerPoolImpl(); | 25 ~WorkerPoolImpl(); |
24 | 26 |
25 void PostTask(const tracked_objects::Location& from_here, Task* task, | 27 void PostTask(const tracked_objects::Location& from_here, Task* task, |
26 bool task_is_slow); | 28 bool task_is_slow); |
27 | 29 |
28 private: | 30 private: |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 return NULL; | 160 return NULL; |
159 } | 161 } |
160 } | 162 } |
161 | 163 |
162 Task* task = tasks_.front(); | 164 Task* task = tasks_.front(); |
163 tasks_.pop(); | 165 tasks_.pop(); |
164 return task; | 166 return task; |
165 } | 167 } |
166 | 168 |
167 } // namespace base | 169 } // namespace base |
OLD | NEW |