Changeset 10710 for trunk/FACT++


Ignore:
Timestamp:
05/13/11 16:59:05 (14 years ago)
Author:
tbretz
Message:
Allow a stopped StateMachine to exit the readline prompt.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/scheduler.cc

    r10709 r10710  
    686686// ------------------------------------------------------------------------
    687687
     688void RunThread(StateMachineImp *io_service)
     689{
     690    // This is necessary so that the StateMachien Thread can signal the
     691    // Readline to exit
     692    io_service->Run();
     693    Readline::Stop();
     694}
     695
    688696template<class S>
    689697int RunDim(Configuration &conf)
     
    725733    shell.SetReceiver(io_service);
    726734
    727     boost::thread t(boost::bind(&AutoScheduler<S>::Run, &io_service));
     735//    boost::thread t(boost::bind(&AutoScheduler<S>::Run, &io_service));
     736    boost::thread t(boost::bind(RunThread, &io_service));
    728737
    729738    //io_service.SetReady();
Note: See TracChangeset for help on using the changeset viewer.