diff options
author | Evan Martin <martine@danga.com> | 2011-01-08 00:35:47 (GMT) |
---|---|---|
committer | Evan Martin <martine@danga.com> | 2011-01-08 00:35:47 (GMT) |
commit | d4efbf34a3dd58551b4819612d0355396e0e6301 (patch) | |
tree | d276f1d491258670a0bda0393cea1603f1e16bca /src/build.h | |
parent | 08a5452d05eae55bec40cd351718d62fd767227c (diff) | |
download | Ninja-d4efbf34a3dd58551b4819612d0355396e0e6301.zip Ninja-d4efbf34a3dd58551b4819612d0355396e0e6301.tar.gz Ninja-d4efbf34a3dd58551b4819612d0355396e0e6301.tar.bz2 |
catch ourselves when we're stuck
Diffstat (limited to 'src/build.h')
-rw-r--r-- | src/build.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/build.h b/src/build.h index f4b8d0c..843e907 100644 --- a/src/build.h +++ b/src/build.h @@ -53,7 +53,9 @@ struct CommandRunner { virtual ~CommandRunner() {} virtual bool CanRunMore() = 0; virtual bool StartCommand(Edge* edge) = 0; - virtual void WaitForCommands() = 0; + // Wait for commands to make progress; return false if there is no + // progress to be made. + virtual bool WaitForCommands() = 0; virtual Edge* NextFinishedCommand(bool* success) = 0; }; |