summaryrefslogtreecommitdiffstats
path: root/src/uscxml/Interpreter.h
diff options
context:
space:
mode:
authorStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2013-04-18 09:54:40 (GMT)
committerStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2013-04-18 09:54:40 (GMT)
commit228c809a34fc270527c39522c7a361004197a786 (patch)
tree9025ff36c6c73a3b994e48bd30f240dcf2f794d7 /src/uscxml/Interpreter.h
parent7c76e603c874009346208c61ad7a3386997b58d1 (diff)
downloaduscxml-228c809a34fc270527c39522c7a361004197a786.zip
uscxml-228c809a34fc270527c39522c7a361004197a786.tar.gz
uscxml-228c809a34fc270527c39522c7a361004197a786.tar.bz2
Protect parts of interpreter with mutexes
Diffstat (limited to 'src/uscxml/Interpreter.h')
-rw-r--r--src/uscxml/Interpreter.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/uscxml/Interpreter.h b/src/uscxml/Interpreter.h
index f28eb69..1394d59 100644
--- a/src/uscxml/Interpreter.h
+++ b/src/uscxml/Interpreter.h
@@ -142,10 +142,12 @@ public:
void receive(const Event& event, bool toFront = false);
Event getCurrentEvent() {
+ tthread::lock_guard<tthread::recursive_mutex> lock(_mutex);
return _currEvent;
}
Arabica::XPath::NodeSet<std::string> getConfiguration() {
+ tthread::lock_guard<tthread::recursive_mutex> lock(_mutex);
return _configuration;
}
void setConfiguration(const std::vector<std::string>& states) {
@@ -228,7 +230,7 @@ protected:
bool _stable;
tthread::thread* _thread;
tthread::recursive_mutex _mutex;
- tthread::recursive_mutex _ioProcMutex;
+ tthread::recursive_mutex _pluginMutex;
URL _baseURI;
Arabica::DOM::Document<std::string> _document;