Lines Matching refs:Engine
87 struct Engine {
88 virtual ~Engine() {}
93 struct SerialEngine : Engine {
108 struct ThreadEngine : Engine {
139 struct ForkEngine : Engine {
282 std::unique_ptr<Engine> engine;
283 if (jobs == 0) { engine.reset(new SerialEngine); }
284 if (jobs > 0) { engine.reset(new ForkEngine); defer_crash_stacktraces(); }
285 if (jobs < 0) { engine.reset(new ThreadEngine); jobs = -jobs; }
319 update_stats(engine->wait_one());
321 while (!engine->spawn(fn)) {
322 update_stats(engine->wait_one());
354 s = engine->wait_one();