Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(669)

Side by Side Diff: base/threading/worker_pool_posix.cc

Issue 6714032: Move some files in base to base/memory. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: only base Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW
« base/task.h ('K') | « base/threading/worker_pool_posix.h ('k') | base/time_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698