diff options
Diffstat (limited to 'src/uscxml')
-rw-r--r-- | src/uscxml/Factory.h | 3 | ||||
-rw-r--r-- | src/uscxml/Interpreter.cpp | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/uscxml/Factory.h b/src/uscxml/Factory.h index a0569bb..ff08754 100644 --- a/src/uscxml/Factory.h +++ b/src/uscxml/Factory.h @@ -325,6 +325,7 @@ public: static void throwErrorPlatform(const std::string& cause); // we need it public for various static functions +protected: InterpreterImpl* _interpreter; }; @@ -460,6 +461,7 @@ public: static void setDefaultPluginPath(const std::string& path); static std::string getDefaultPluginPath(); +protected: std::map<std::string, DataModelImpl*> _dataModels; std::map<std::string, std::string> _dataModelAliases; std::map<std::string, IOProcessorImpl*> _ioProcessors; @@ -468,7 +470,6 @@ public: std::map<std::string, std::string> _invokerAliases; std::map<std::pair<std::string, std::string>, ExecutableContentImpl*> _executableContent; -protected: #ifdef BUILD_AS_PLUGINS pluma::Pluma pluma; #endif diff --git a/src/uscxml/Interpreter.cpp b/src/uscxml/Interpreter.cpp index 9770387..f5aaf77 100644 --- a/src/uscxml/Interpreter.cpp +++ b/src/uscxml/Interpreter.cpp @@ -96,7 +96,7 @@ e.name = "error.platform"; \ e.data.compound["cause"] = Data(msg, Data::VERBATIM); \ throw e; \ - + /// macro to catch exceptions in executeContent #define CATCH_AND_DISTRIBUTE(msg) \ @@ -556,7 +556,7 @@ void InterpreterImpl::join() { bool InterpreterImpl::isRunning() { // return _running || !_topLevelFinalReached; - return _state.thread & InterpreterState::USCXML_THREAD_RUNNING; + return (_state.thread & InterpreterState::USCXML_THREAD_RUNNING) > 0; } void InterpreterImpl::run(void* instance) { |