Changeset 18425 for trunk/FACT++/src


Ignore:
Timestamp:
01/29/16 10:27:50 (9 years ago)
Author:
tbretz
Message:
Make sure that in case of an external 'exit' the V8 threads are properly disposed.
Location:
trunk/FACT++/src
Files:
2 edited

Legend:

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

    r18167 r18425  
    135135    InterpreterV8::JsStop();
    136136    return GetCurrentState();
     137}
     138
     139void StateMachineDimControl::Stop(int code)
     140{
     141    InterpreterV8::JsStop();
     142    StateMachineDim::Stop(code);
    137143}
    138144
  • trunk/FACT++/src/StateMachineDimControl.h

    r18167 r18425  
    7777    void SetInterruptHandler(const std::function<int(const EventImp &)> &func=std::function<int(const EventImp &)>()) { fInterruptHandler = func; }
    7878
     79    void Stop(int code=0);
     80
    7981public:
    8082    StateMachineDimControl(std::ostream &out=std::cout);
Note: See TracChangeset for help on using the changeset viewer.