Ignore:
Timestamp:
Nov 13, 2014, 2:12:29 AM (7 years ago)
Author:
Peter
Message:

Replace Scheduler::launch() with a function Scheduler::wait(). Before
Jobs did not run until launch() was called, now the Scheduler tries to
run them as soon as they are submitted.

refs #800

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/scheduler.cc

    r3347 r3348  
    6060  sleeper.push_back(boost::make_shared<Sleeper>(1));
    6161  sleeper.push_back(boost::make_shared<Sleeper>(10));
     62  scheduler.submit(sleeper[1]);
    6263  sleeper.push_back(boost::make_shared<Sleeper>(2));
    6364  sleeper.back()->add_dependency(sleeper[0]);
     
    7172
    7273  scheduler.submit(sleeper[3]);
    73   scheduler.launch();
     74  scheduler.wait();
    7475  return suite.return_value();
    7576}
Note: See TracChangeset for help on using the changeset viewer.