OLD | NEW |
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 <stdbool.h> |
| 6 |
| 7 #include "base/basictypes.h" |
5 #include "base/threading/thread_restrictions.h" | 8 #include "base/threading/thread_restrictions.h" |
6 | 9 |
7 // This entire file is compiled out in Release mode. | 10 // This entire file is compiled out in Release mode. |
8 #ifndef NDEBUG | 11 #ifndef NDEBUG |
9 | 12 |
10 #include "base/lazy_instance.h" | 13 #include "base/lazy_instance.h" |
11 #include "base/logging.h" | 14 #include "base/logging.h" |
12 #include "base/threading/thread_local.h" | 15 #include "base/threading/thread_local.h" |
13 | 16 |
14 namespace base { | 17 namespace base { |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 LOG(FATAL) << "LazyInstance/Singleton is not allowed to be used on this " | 57 LOG(FATAL) << "LazyInstance/Singleton is not allowed to be used on this " |
55 << "thread. Most likely it's because this thread is not " | 58 << "thread. Most likely it's because this thread is not " |
56 << "joinable, so AtExitManager may have deleted the object " | 59 << "joinable, so AtExitManager may have deleted the object " |
57 << "on shutdown, leading to a potential shutdown crash."; | 60 << "on shutdown, leading to a potential shutdown crash."; |
58 } | 61 } |
59 } | 62 } |
60 | 63 |
61 } // namespace base | 64 } // namespace base |
62 | 65 |
63 #endif // NDEBUG | 66 #endif // NDEBUG |
OLD | NEW |