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

Side by Side Diff: components/scheduler/base/time_domain.h

Issue 1855453002: Remove registered_task_queues_ and associated DCHECKS from TimeDomain (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
« no previous file with comments | « no previous file | components/scheduler/base/time_domain.cc » ('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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 COMPONENTS_SCHEDULER_BASE_TIME_DOMAIN_H_ 5 #ifndef COMPONENTS_SCHEDULER_BASE_TIME_DOMAIN_H_
6 #define COMPONENTS_SCHEDULER_BASE_TIME_DOMAIN_H_ 6 #define COMPONENTS_SCHEDULER_BASE_TIME_DOMAIN_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 144
145 // This lock guards only |newly_updatable_|. It's not expected to be heavily 145 // This lock guards only |newly_updatable_|. It's not expected to be heavily
146 // contended. 146 // contended.
147 base::Lock newly_updatable_lock_; 147 base::Lock newly_updatable_lock_;
148 std::vector<internal::TaskQueueImpl*> newly_updatable_; 148 std::vector<internal::TaskQueueImpl*> newly_updatable_;
149 149
150 // Set of task queues with avaliable work on the incoming queue. This should 150 // Set of task queues with avaliable work on the incoming queue. This should
151 // only be accessed from the main thread. 151 // only be accessed from the main thread.
152 std::set<internal::TaskQueueImpl*> updatable_queue_set_; 152 std::set<internal::TaskQueueImpl*> updatable_queue_set_;
153 153
154 #if DCHECK_IS_ON()
155 std::set<internal::TaskQueueImpl*> registered_task_queues_;
156 #endif
157
158 Observer* observer_; // NOT OWNED. 154 Observer* observer_; // NOT OWNED.
159 155
160 base::ThreadChecker main_thread_checker_; 156 base::ThreadChecker main_thread_checker_;
161 157
162 DISALLOW_COPY_AND_ASSIGN(TimeDomain); 158 DISALLOW_COPY_AND_ASSIGN(TimeDomain);
163 }; 159 };
164 160
165 } // namespace scheduler 161 } // namespace scheduler
166 162
167 #endif // COMPONENTS_SCHEDULER_BASE_TIME_DOMAIN_H_ 163 #endif // COMPONENTS_SCHEDULER_BASE_TIME_DOMAIN_H_
OLDNEW
« no previous file with comments | « no previous file | components/scheduler/base/time_domain.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698