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

Side by Side Diff: base/threading/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/simple_thread.cc ('k') | base/threading/thread_checker.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) 2006-2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2009 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 <stdbool.h>
6 #include <stddef.h>
7 #include <string>
8
9 #include "base/basictypes.h"
10 #include "base/lazy_instance.h"
11 #include "base/logging.h"
12 #include "base/message_loop.h"
13 #include "base/message_loop_proxy.h"
14 #include "base/ref_counted.h"
15 #include "base/synchronization/waitable_event.h"
16 #include "base/task.h"
17 #include "base/third_party/dynamic_annotations/dynamic_annotations.h"
18 #include "base/threading/platform_thread.h"
5 #include "base/threading/thread.h" 19 #include "base/threading/thread.h"
6
7 #include "base/lazy_instance.h"
8 #include "base/third_party/dynamic_annotations/dynamic_annotations.h"
9 #include "base/threading/thread_local.h" 20 #include "base/threading/thread_local.h"
10 #include "base/synchronization/waitable_event.h" 21 #include "base/tracked.h"
11 22
12 namespace base { 23 namespace base {
13 24
14 namespace { 25 namespace {
15 26
16 // We use this thread-local variable to record whether or not a thread exited 27 // We use this thread-local variable to record whether or not a thread exited
17 // because its Stop method was called. This allows us to catch cases where 28 // because its Stop method was called. This allows us to catch cases where
18 // MessageLoop::Quit() is called directly, which is unexpected when using a 29 // MessageLoop::Quit() is called directly, which is unexpected when using a
19 // Thread to setup and run a MessageLoop. 30 // Thread to setup and run a MessageLoop.
20 base::LazyInstance<base::ThreadLocalBoolean> lazy_tls_bool( 31 base::LazyInstance<base::ThreadLocalBoolean> lazy_tls_bool(
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 182
172 // We can't receive messages anymore. 183 // We can't receive messages anymore.
173 message_loop_ = NULL; 184 message_loop_ = NULL;
174 message_loop_proxy_ = NULL; 185 message_loop_proxy_ = NULL;
175 } 186 }
176 CleanUpAfterMessageLoopDestruction(); 187 CleanUpAfterMessageLoopDestruction();
177 thread_id_ = kInvalidThreadId; 188 thread_id_ = kInvalidThreadId;
178 } 189 }
179 190
180 } // namespace base 191 } // namespace base
OLDNEW
« no previous file with comments | « base/threading/simple_thread.cc ('k') | base/threading/thread_checker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698