OLD | NEW |
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 "base/thread.h" | 5 #include "base/thread.h" |
6 | 6 |
7 #include "base/lazy_instance.h" | 7 #include "base/lazy_instance.h" |
8 #include "base/string_util.h" | |
9 #include "base/third_party/dynamic_annotations/dynamic_annotations.h" | 8 #include "base/third_party/dynamic_annotations/dynamic_annotations.h" |
10 #include "base/thread_local.h" | 9 #include "base/thread_local.h" |
11 #include "base/waitable_event.h" | 10 #include "base/waitable_event.h" |
12 | 11 |
13 namespace base { | 12 namespace base { |
14 | 13 |
15 // This task is used to trigger the message loop to exit. | 14 // This task is used to trigger the message loop to exit. |
16 class ThreadQuitTask : public Task { | 15 class ThreadQuitTask : public Task { |
17 public: | 16 public: |
18 virtual void Run() { | 17 virtual void Run() { |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 | 171 |
173 // We can't receive messages anymore. | 172 // We can't receive messages anymore. |
174 message_loop_ = NULL; | 173 message_loop_ = NULL; |
175 message_loop_proxy_ = NULL; | 174 message_loop_proxy_ = NULL; |
176 } | 175 } |
177 CleanUpAfterMessageLoopDestruction(); | 176 CleanUpAfterMessageLoopDestruction(); |
178 thread_id_ = 0; | 177 thread_id_ = 0; |
179 } | 178 } |
180 | 179 |
181 } // namespace base | 180 } // namespace base |
OLD | NEW |