| 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 #ifndef BASE_THREADING_NON_THREAD_SAFE_IMPL_H_ | 5 #ifndef BASE_THREADING_NON_THREAD_SAFE_IMPL_H_ |
| 6 #define BASE_THREADING_NON_THREAD_SAFE_IMPL_H_ | 6 #define BASE_THREADING_NON_THREAD_SAFE_IMPL_H_ |
| 7 #pragma once | |
| 8 | 7 |
| 9 #include "base/base_export.h" | 8 #include "base/base_export.h" |
| 10 #include "base/threading/thread_checker_impl.h" | 9 #include "base/threading/thread_checker_impl.h" |
| 11 | 10 |
| 12 namespace base { | 11 namespace base { |
| 13 | 12 |
| 14 // Full implementation of NonThreadSafe, for debug mode or for occasional | 13 // Full implementation of NonThreadSafe, for debug mode or for occasional |
| 15 // temporary use in release mode e.g. when you need to CHECK on a thread | 14 // temporary use in release mode e.g. when you need to CHECK on a thread |
| 16 // bug that only occurs in the wild. | 15 // bug that only occurs in the wild. |
| 17 // | 16 // |
| (...skipping 13 matching lines...) Expand all Loading... |
| 31 // used exclusively on another thread. | 30 // used exclusively on another thread. |
| 32 void DetachFromThread(); | 31 void DetachFromThread(); |
| 33 | 32 |
| 34 private: | 33 private: |
| 35 ThreadCheckerImpl thread_checker_; | 34 ThreadCheckerImpl thread_checker_; |
| 36 }; | 35 }; |
| 37 | 36 |
| 38 } // namespace base | 37 } // namespace base |
| 39 | 38 |
| 40 #endif // BASE_THREADING_NON_THREAD_SAFE_IMPL_H_ | 39 #endif // BASE_THREADING_NON_THREAD_SAFE_IMPL_H_ |
| OLD | NEW |