| OLD | NEW |
| 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" |
| 11 #include "base/basictypes.h" | |
| 12 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
| 12 #include "base/macros.h" |
| 13 #include "base/message_loop/message_loop.h" | 13 #include "base/message_loop/message_loop.h" |
| 14 #include "base/run_loop.h" | 14 #include "base/run_loop.h" |
| 15 #include "base/synchronization/lock.h" | 15 #include "base/synchronization/lock.h" |
| 16 #include "base/threading/sequenced_worker_pool.h" | 16 #include "base/threading/sequenced_worker_pool.h" |
| 17 #include "tools/gn/input_file_manager.h" | 17 #include "tools/gn/input_file_manager.h" |
| 18 | 18 |
| 19 class Target; | 19 class Target; |
| 20 | 20 |
| 21 // Maintains the thread pool and error state. | 21 // Maintains the thread pool and error state. |
| 22 class Scheduler { | 22 class Scheduler { |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 std::vector<SourceFile> written_files_; | 116 std::vector<SourceFile> written_files_; |
| 117 std::multimap<SourceFile, const Target*> unknown_generated_inputs_; | 117 std::multimap<SourceFile, const Target*> unknown_generated_inputs_; |
| 118 | 118 |
| 119 DISALLOW_COPY_AND_ASSIGN(Scheduler); | 119 DISALLOW_COPY_AND_ASSIGN(Scheduler); |
| 120 }; | 120 }; |
| 121 | 121 |
| 122 extern Scheduler* g_scheduler; | 122 extern Scheduler* g_scheduler; |
| 123 | 123 |
| 124 #endif // TOOLS_GN_SCHEDULER_H_ | 124 #endif // TOOLS_GN_SCHEDULER_H_ |
| 125 | 125 |
| OLD | NEW |