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

Side by Side Diff: tools/gn/scheduler.h

Issue 2515383005: gn: Remove Scheduler::pool(). (Closed)
Patch Set: Created 4 years 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 | « tools/gn/input_file_manager.cc ('k') | no next file » | 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 TOOLS_GN_SCHEDULER_H_ 5 #ifndef TOOLS_GN_SCHEDULER_H_
6 #define TOOLS_GN_SCHEDULER_H_ 6 #define TOOLS_GN_SCHEDULER_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/atomic_ref_count.h" 10 #include "base/atomic_ref_count.h"
(...skipping 15 matching lines...) Expand all
26 class Scheduler { 26 class Scheduler {
27 public: 27 public:
28 Scheduler(); 28 Scheduler();
29 ~Scheduler(); 29 ~Scheduler();
30 30
31 bool Run(); 31 bool Run();
32 32
33 scoped_refptr<base::SingleThreadTaskRunner> task_runner() { 33 scoped_refptr<base::SingleThreadTaskRunner> task_runner() {
34 return main_loop_.task_runner(); 34 return main_loop_.task_runner();
35 } 35 }
36 base::SequencedWorkerPool* pool() { return pool_.get(); }
37 36
38 InputFileManager* input_file_manager() { return input_file_manager_.get(); } 37 InputFileManager* input_file_manager() { return input_file_manager_.get(); }
39 38
40 bool verbose_logging() const { return verbose_logging_; } 39 bool verbose_logging() const { return verbose_logging_; }
41 void set_verbose_logging(bool v) { verbose_logging_ = v; } 40 void set_verbose_logging(bool v) { verbose_logging_ = v; }
42 41
43 // TODO(brettw) data race on this access (benign?). 42 // TODO(brettw) data race on this access (benign?).
44 bool is_failed() const { return is_failed_; } 43 bool is_failed() const { return is_failed_; }
45 44
46 void Log(const std::string& verb, const std::string& msg); 45 void Log(const std::string& verb, const std::string& msg);
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 std::vector<SourceFile> written_files_; 125 std::vector<SourceFile> written_files_;
127 std::vector<const Target*> write_runtime_deps_targets_; 126 std::vector<const Target*> write_runtime_deps_targets_;
128 std::multimap<SourceFile, const Target*> unknown_generated_inputs_; 127 std::multimap<SourceFile, const Target*> unknown_generated_inputs_;
129 128
130 DISALLOW_COPY_AND_ASSIGN(Scheduler); 129 DISALLOW_COPY_AND_ASSIGN(Scheduler);
131 }; 130 };
132 131
133 extern Scheduler* g_scheduler; 132 extern Scheduler* g_scheduler;
134 133
135 #endif // TOOLS_GN_SCHEDULER_H_ 134 #endif // TOOLS_GN_SCHEDULER_H_
OLDNEW
« no previous file with comments | « tools/gn/input_file_manager.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698