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

Side by Side Diff: base/threading/thread_checker.h

Issue 10735044: Remove #pragma once. Just from base/ for now. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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/thread.h ('k') | base/threading/thread_checker_impl.h » ('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) 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_THREAD_CHECKER_H_ 5 #ifndef BASE_THREADING_THREAD_CHECKER_H_
6 #define BASE_THREADING_THREAD_CHECKER_H_ 6 #define BASE_THREADING_THREAD_CHECKER_H_
7 #pragma once
8 7
9 // Apart from debug builds, we also enable the thread checker in 8 // Apart from debug builds, we also enable the thread checker in
10 // builds with DCHECK_ALWAYS_ON so that trybots and waterfall bots 9 // builds with DCHECK_ALWAYS_ON so that trybots and waterfall bots
11 // with this define will get the same level of thread checking as 10 // with this define will get the same level of thread checking as
12 // debug bots. 11 // debug bots.
13 // 12 //
14 // Note that this does not perfectly match situations where DCHECK is 13 // Note that this does not perfectly match situations where DCHECK is
15 // enabled. For example a non-official release build may have 14 // enabled. For example a non-official release build may have
16 // DCHECK_ALWAYS_ON undefined (and therefore ThreadChecker would be 15 // DCHECK_ALWAYS_ON undefined (and therefore ThreadChecker would be
17 // disabled) but have DCHECKs enabled at runtime. 16 // disabled) but have DCHECKs enabled at runtime.
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 #else 76 #else
78 class ThreadChecker : public ThreadCheckerDoNothing { 77 class ThreadChecker : public ThreadCheckerDoNothing {
79 }; 78 };
80 #endif // ENABLE_THREAD_CHECKER 79 #endif // ENABLE_THREAD_CHECKER
81 80
82 #undef ENABLE_THREAD_CHECKER 81 #undef ENABLE_THREAD_CHECKER
83 82
84 } // namespace base 83 } // namespace base
85 84
86 #endif // BASE_THREADING_THREAD_CHECKER_H_ 85 #endif // BASE_THREADING_THREAD_CHECKER_H_
OLDNEW
« no previous file with comments | « base/threading/thread.h ('k') | base/threading/thread_checker_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698