diff options
author | dcheng@chromium.org <dcheng@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-06-13 18:01:07 +0000 |
---|---|---|
committer | dcheng@chromium.org <dcheng@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-06-13 18:01:07 +0000 |
commit | 02c29b3895a09d2b62391e5241fe6f6026cf6a65 (patch) | |
tree | ce1d6267b281dda2a170d63cbe94bc1fcb32636f /base/threading | |
parent | ffd1a1ca3c71d5f651223aa1df0cb0ac9c008971 (diff) | |
download | chromium_src-02c29b3895a09d2b62391e5241fe6f6026cf6a65.zip chromium_src-02c29b3895a09d2b62391e5241fe6f6026cf6a65.tar.gz chromium_src-02c29b3895a09d2b62391e5241fe6f6026cf6a65.tar.bz2 |
Rewrite scoped_ptr<T>(NULL) to use the default ctor in base/.
This is the result of running the rewrite_scoped_ptr_ctor_null tool
across all files built on Linux in the base/ directory.
BUG=173286
Review URL: https://chromiumcodereview.appspot.com/16950008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@206116 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/threading')
-rw-r--r-- | base/threading/worker_pool_posix.cc | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/base/threading/worker_pool_posix.cc b/base/threading/worker_pool_posix.cc index 243e50a..c4c523f 100644 --- a/base/threading/worker_pool_posix.cc +++ b/base/threading/worker_pool_posix.cc @@ -123,15 +123,13 @@ bool WorkerPool::RunsTasksOnCurrentThread() { return g_worker_pool_running_on_this_thread.Get().Get(); } -PosixDynamicThreadPool::PosixDynamicThreadPool( - const std::string& name_prefix, - int idle_seconds_before_exit) +PosixDynamicThreadPool::PosixDynamicThreadPool(const std::string& name_prefix, + int idle_seconds_before_exit) : name_prefix_(name_prefix), idle_seconds_before_exit_(idle_seconds_before_exit), pending_tasks_available_cv_(&lock_), num_idle_threads_(0), - terminated_(false), - num_idle_threads_cv_(NULL) {} + terminated_(false) {} PosixDynamicThreadPool::~PosixDynamicThreadPool() { while (!pending_tasks_.empty()) |