Changeset 14051 for trunk/FACT++


Ignore:
Timestamp:
06/03/12 20:25:12 (12 years ago)
Author:
tbretz
Message:
Allow stoppping the script from everyhwere.
Location:
trunk/FACT++/src
Files:
2 edited

Legend:

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

    r14049 r14051  
    285285    v8::Locker locker;
    286286    //cout << "Terminate " << fThreadId << endl;
    287     if (fThreadId>=0)
    288         v8::V8::TerminateExecution(fThreadId);
     287    if (This->fThreadId>=0)
     288        v8::V8::TerminateExecution(This->fThreadId);
    289289    //cout << "Terminate " << fThreadId << endl;
    290290    v8::Unlocker unlocker;
  • trunk/FACT++/src/InterpreterV8.h

    r14049 r14051  
    5757
    5858    bool JsRun(const std::string &filename);
    59     void JsStop();
     59    static void JsStop();
    6060};
    6161
Note: See TracChangeset for help on using the changeset viewer.