summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJuergen Gehring <juergen.gehring@bmw.de>2018-01-25 01:01:22 -0800
committerJuergen Gehring <juergen.gehring@bmw.de>2018-01-25 01:01:22 -0800
commit2fd0625d21f1fa8e6a3adfc89ce9f381a4d33990 (patch)
tree373a6c991944c700ee3ff1fe872daa3f751281d8 /src
parent2c259a9cbfa8fbde71ebc62d45684c375311f4fc (diff)
downloadgenivi-common-api-runtime-2fd0625d21f1fa8e6a3adfc89ce9f381a4d33990.tar.gz
capicxx-core-runtime 3.1.12.43.1.12.4
Diffstat (limited to 'src')
-rw-r--r--src/CommonAPI/Runtime.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/CommonAPI/Runtime.cpp b/src/CommonAPI/Runtime.cpp
index daf6a66..9bae2e2 100644
--- a/src/CommonAPI/Runtime.cpp
+++ b/src/CommonAPI/Runtime.cpp
@@ -55,7 +55,9 @@ Runtime::setProperty(const std::string &_name, const std::string &_value) {
}
std::shared_ptr<Runtime> Runtime::get() {
+#ifndef _WIN32
std::lock_guard<std::mutex> itsLock(getMutex__);
+#endif
if(!theRuntimePtr__) {
theRuntimePtr__ = new std::shared_ptr<Runtime>();
}