Ninja
|
Public Member Functions | |
virtual void | Abort () |
virtual bool | CanRunMore () |
virtual vector< Edge * > | GetActiveEdges () |
RealCommandRunner (const BuildConfig &config) | |
virtual bool | StartCommand (Edge *edge) |
virtual bool | WaitForCommand (Result *result) |
Wait for a command to complete, or return false if interrupted. More... | |
virtual | ~RealCommandRunner () |
Public Attributes | |
const BuildConfig & | config_ |
map< Subprocess *, Edge * > | subproc_to_edge_ |
SubprocessSet | subprocs_ |
|
inlineexplicit |
|
inlinevirtual |
|
virtual |
Reimplemented from CommandRunner.
Definition at line 484 of file build.cc.
References SubprocessSet::Clear(), and subprocs_.
|
virtual |
Implements CommandRunner.
Definition at line 488 of file build.cc.
References config_, GetLoadAverage(), BuildConfig::max_load_average, BuildConfig::parallelism, SubprocessSet::running_, and subprocs_.
|
virtual |
Reimplemented from CommandRunner.
Definition at line 476 of file build.cc.
References subproc_to_edge_.
|
virtual |
Implements CommandRunner.
Definition at line 494 of file build.cc.
References SubprocessSet::Add(), Edge::EvaluateCommand(), subproc_to_edge_, and subprocs_.
|
virtual |
Wait for a command to complete, or return false if interrupted.
Implements CommandRunner.
Definition at line 504 of file build.cc.
References SubprocessSet::DoWork(), CommandRunner::Result::edge, Subprocess::Finish(), Subprocess::GetOutput(), SubprocessSet::NextFinished(), CommandRunner::Result::output, CommandRunner::Result::status, subproc_to_edge_, and subprocs_.
const BuildConfig& RealCommandRunner::config_ |
Definition at line 471 of file build.cc.
Referenced by CanRunMore().
map<Subprocess*, Edge*> RealCommandRunner::subproc_to_edge_ |
Definition at line 473 of file build.cc.
Referenced by GetActiveEdges(), StartCommand(), and WaitForCommand().
SubprocessSet RealCommandRunner::subprocs_ |
Definition at line 472 of file build.cc.
Referenced by Abort(), CanRunMore(), StartCommand(), and WaitForCommand().