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

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

Issue 2926013002: Support explicit pools in actions (Closed)
Patch Set: Remove console altogether Created 3 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
« no previous file with comments | « tools/gn/ninja_toolchain_writer.cc ('k') | tools/gn/pool.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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_POOL_H_ 5 #ifndef TOOLS_GN_POOL_H_
6 #define TOOLS_GN_POOL_H_ 6 #define TOOLS_GN_POOL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "tools/gn/item.h" 10 #include "tools/gn/item.h"
(...skipping 11 matching lines...) Expand all
22 Pool& operator=(const Pool&) = delete; 22 Pool& operator=(const Pool&) = delete;
23 23
24 // Item implementation. 24 // Item implementation.
25 Pool* AsPool() override; 25 Pool* AsPool() override;
26 const Pool* AsPool() const override; 26 const Pool* AsPool() const override;
27 27
28 // The pool depth (number of task to run simultaneously). 28 // The pool depth (number of task to run simultaneously).
29 int64_t depth() const { return depth_; } 29 int64_t depth() const { return depth_; }
30 void set_depth(int64_t depth) { depth_ = depth; } 30 void set_depth(int64_t depth) { depth_ = depth; }
31 31
32 // Console pool option
33 bool is_console() const { return console_; }
34 void set_console(bool value) { console_ = value; }
35
32 // The pool name in generated ninja files. 36 // The pool name in generated ninja files.
33 std::string GetNinjaName(const Label& default_toolchain) const; 37 std::string GetNinjaName(const Label& default_toolchain) const;
34 38
35 private: 39 private:
36 std::string GetNinjaName(bool include_toolchain) const; 40 std::string GetNinjaName(bool include_toolchain) const;
37 41
38 int64_t depth_ = 0; 42 int64_t depth_ = 0;
43 bool console_ = false;
39 }; 44 };
40 45
41 #endif // TOOLS_GN_POOL_H_ 46 #endif // TOOLS_GN_POOL_H_
OLDNEW
« no previous file with comments | « tools/gn/ninja_toolchain_writer.cc ('k') | tools/gn/pool.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698