diff options
author | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2013-04-07 17:08:46 (GMT) |
---|---|---|
committer | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2013-04-07 17:08:46 (GMT) |
commit | f13848cab284839c2f6abd39ef38dd18692a50cf (patch) | |
tree | 8de4b167374511cc2f7a9d89c2efb3f77ca3235d /src/uscxml/Interpreter.h | |
parent | 46d089f8642501cf2ffc4a531add0a3a8eaa268e (diff) | |
download | uscxml-f13848cab284839c2f6abd39ef38dd18692a50cf.zip uscxml-f13848cab284839c2f6abd39ef38dd18692a50cf.tar.gz uscxml-f13848cab284839c2f6abd39ef38dd18692a50cf.tar.bz2 |
Even more conformance fixes
Diffstat (limited to 'src/uscxml/Interpreter.h')
-rw-r--r-- | src/uscxml/Interpreter.h | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/src/uscxml/Interpreter.h b/src/uscxml/Interpreter.h index 9be85ff..2a63604 100644 --- a/src/uscxml/Interpreter.h +++ b/src/uscxml/Interpreter.h @@ -66,9 +66,9 @@ public: }; enum Capabilities { - CAN_NOTHING = 0, - CAN_BASIC_HTTP = 1, - CAN_GENERIC_HTTP = 2, + CAN_NOTHING = 0, + CAN_BASIC_HTTP = 1, + CAN_GENERIC_HTTP = 2, }; class InterpreterImpl : public boost::enable_shared_from_this<InterpreterImpl> { @@ -139,14 +139,8 @@ public: return ""; } - void inline receiveInternal(const Event& event); - void receive(const Event& event, bool toFront = false) { - if (toFront) { - _externalQueue.push_front(event); - } else { - _externalQueue.push(event); - } - } + void receiveInternal(const Event& event); + void receive(const Event& event, bool toFront = false); Event getCurrentEvent() { return _currEvent; @@ -553,7 +547,7 @@ public: boost::shared_ptr<InterpreterImpl> getImpl() { return _impl; } - + static std::map<std::string, boost::weak_ptr<InterpreterImpl> > getInstances() { tthread::lock_guard<tthread::recursive_mutex> lock(_instanceMutex); std::map<std::string, boost::weak_ptr<InterpreterImpl> >::iterator instIter = _instances.begin(); @@ -566,9 +560,9 @@ public: } return _instances; } - + #endif - + protected: boost::shared_ptr<InterpreterImpl> _impl; static std::map<std::string, boost::weak_ptr<InterpreterImpl> > _instances; |