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_SEQUENCE_CHECKER_IMPL_H_ | 5 #ifndef BASE_SEQUENCE_CHECKER_IMPL_H_ |
6 #define BASE_SEQUENCE_CHECKER_IMPL_H_ | 6 #define BASE_SEQUENCE_CHECKER_IMPL_H_ |
7 | 7 |
8 #include "base/base_export.h" | 8 #include "base/base_export.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 #include "base/sequence_token.h" | 11 #include "base/sequence_and_task_token.h" |
12 #include "base/synchronization/lock.h" | 12 #include "base/synchronization/lock.h" |
13 #include "base/threading/sequenced_worker_pool.h" | 13 #include "base/threading/sequenced_worker_pool.h" |
14 #include "base/threading/thread_checker_impl.h" | 14 #include "base/threading/thread_checker_impl.h" |
15 | 15 |
16 namespace base { | 16 namespace base { |
17 | 17 |
18 // Real implementation of SequenceChecker for use in debug mode or for temporary | 18 // Real implementation of SequenceChecker for use in debug mode or for temporary |
19 // use in release mode (e.g. to CHECK on a threading issue seen only in the | 19 // use in release mode (e.g. to CHECK on a threading issue seen only in the |
20 // wild). | 20 // wild). |
21 // | 21 // |
(...skipping 29 matching lines...) Expand all Loading... |
51 | 51 |
52 // Used when |sequenced_worker_pool_token_| and |sequence_token_| are invalid. | 52 // Used when |sequenced_worker_pool_token_| and |sequence_token_| are invalid. |
53 ThreadCheckerImpl thread_checker_; | 53 ThreadCheckerImpl thread_checker_; |
54 | 54 |
55 DISALLOW_COPY_AND_ASSIGN(SequenceCheckerImpl); | 55 DISALLOW_COPY_AND_ASSIGN(SequenceCheckerImpl); |
56 }; | 56 }; |
57 | 57 |
58 } // namespace base | 58 } // namespace base |
59 | 59 |
60 #endif // BASE_SEQUENCE_CHECKER_IMPL_H_ | 60 #endif // BASE_SEQUENCE_CHECKER_IMPL_H_ |
OLD | NEW |