OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/thread.h" | 5 #include "base/threading/thread.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/lazy_instance.h" | 8 #include "base/lazy_instance.h" |
9 #include "base/location.h" | 9 #include "base/location.h" |
10 #include "base/synchronization/waitable_event.h" | 10 #include "base/synchronization/waitable_event.h" |
11 #include "base/third_party/dynamic_annotations/dynamic_annotations.h" | 11 #include "base/third_party/dynamic_annotations/dynamic_annotations.h" |
12 #include "base/threading/thread_id_name_manager.h" | 12 #include "base/threading/thread_id_name_manager.h" |
13 #include "base/threading/thread_local.h" | 13 #include "base/threading/thread_local.h" |
14 #include "base/threading/thread_restrictions.h" | 14 #include "base/threading/thread_restrictions.h" |
| 15 #include "build/build_config.h" |
15 | 16 |
16 #if defined(OS_WIN) | 17 #if defined(OS_WIN) |
17 #include "base/win/scoped_com_initializer.h" | 18 #include "base/win/scoped_com_initializer.h" |
18 #endif | 19 #endif |
19 | 20 |
20 namespace base { | 21 namespace base { |
21 | 22 |
22 namespace { | 23 namespace { |
23 | 24 |
24 // We use this thread-local variable to record whether or not a thread exited | 25 // We use this thread-local variable to record whether or not a thread exited |
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
268 // allow this. | 269 // allow this. |
269 DCHECK(GetThreadWasQuitProperly()); | 270 DCHECK(GetThreadWasQuitProperly()); |
270 } | 271 } |
271 | 272 |
272 // We can't receive messages anymore. | 273 // We can't receive messages anymore. |
273 // (The message loop is destructed at the end of this block) | 274 // (The message loop is destructed at the end of this block) |
274 message_loop_ = nullptr; | 275 message_loop_ = nullptr; |
275 } | 276 } |
276 | 277 |
277 } // namespace base | 278 } // namespace base |
OLD | NEW |