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

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

Issue 6410105: run iwyu on base! Base URL: svn://svn.chromium.org/chrome/trunk/src/base
Patch Set: Created 9 years, 10 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
« no previous file with comments | « base/threading/platform_thread_posix.cc ('k') | base/threading/thread.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/simple_thread.h" 5 #include <stdbool.h>
6 #include <stddef.h>
7 #include <queue>
8 #include <string>
9 #include <vector>
6 10
7 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/string_number_conversions.h"
13 #include "base/synchronization/lock.h"
14 #include "base/synchronization/waitable_event.h"
8 #include "base/threading/platform_thread.h" 15 #include "base/threading/platform_thread.h"
9 #include "base/string_number_conversions.h" 16 #include "base/threading/simple_thread.h"
10 17
11 namespace base { 18 namespace base {
12 19
13 SimpleThread::SimpleThread(const std::string& name_prefix) 20 SimpleThread::SimpleThread(const std::string& name_prefix)
14 : name_prefix_(name_prefix), name_(name_prefix), 21 : name_prefix_(name_prefix), name_(name_prefix),
15 thread_(), event_(true, false), tid_(0), joined_(false) { 22 thread_(), event_(true, false), tid_(0), joined_(false) {
16 } 23 }
17 24
18 SimpleThread::SimpleThread(const std::string& name_prefix, 25 SimpleThread::SimpleThread(const std::string& name_prefix,
19 const Options& options) 26 const Options& options)
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 150
144 // A NULL delegate pointer signals us to quit. 151 // A NULL delegate pointer signals us to quit.
145 if (!work) 152 if (!work)
146 break; 153 break;
147 154
148 work->Run(); 155 work->Run();
149 } 156 }
150 } 157 }
151 158
152 } // namespace base 159 } // namespace base
OLDNEW
« no previous file with comments | « base/threading/platform_thread_posix.cc ('k') | base/threading/thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698